diff --git a/Sources/Protocols/ObservableMappable.swift b/Sources/Protocols/ObservableMappable.swift index 5d97a040..25ad6f90 100644 --- a/Sources/Protocols/ObservableMappable.swift +++ b/Sources/Protocols/ObservableMappable.swift @@ -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 + static func createFrom(decoder: JSONDecoder, jsonObject: Any) -> Observable }