observable mappable protocol updated
This commit is contained in:
parent
83b8f40e93
commit
91b49d8f94
|
|
@ -26,8 +26,8 @@ import RxSwift
|
|||
/// Protocol for concurrent model mapping
|
||||
public protocol ObservableMappable {
|
||||
|
||||
associatedtype ModelType
|
||||
associatedtype ModelType: Decodable
|
||||
|
||||
static func createFrom(map: Map) -> Observable<ModelType>
|
||||
static func createFrom(decoder: JSONDecoder, jsonObject: Any) -> Observable<ModelType>
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue