JSONDecodable

public protocol JSONDecodable

Decode object form JSON

  • toObject(from:type:) Default implementation

    Undocumented

    Default Implementation

    Undocumented

    Undocumented

    Declaration

    Swift

    func toObject<T>(from string: String, type: T.Type) -> T? where T : Decodable
  • Undocumented

    Declaration

    Swift

    func toObject<T>(from data: Data, type: T.Type) -> T? where T : Decodable