observable mappable protocol updated

This commit is contained in:
Madhas 2018-05-16 15:52:01 +03:00
parent 83b8f40e93
commit 91b49d8f94
1 changed files with 2 additions and 2 deletions

View File

@ -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>
}