Decodable

public extension Decodable
  • SwifterSwift: Parsing the model in Decodable type

    Declaration

    Swift

    init?(from data: Data, using decoder: JSONDecoder = .init())

    Parameters

    data

    Data.

    decoder

    JSONDecoder. Initialized by default