From 91b49d8f9402217a66b1925b367f58c997e7d3e9 Mon Sep 17 00:00:00 2001 From: Madhas Date: Wed, 16 May 2018 15:52:01 +0300 Subject: [PATCH] observable mappable protocol updated --- Sources/Protocols/ObservableMappable.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }