AssetJSONDecoder

public protocol AssetJSONDecoder

Public interface allowing creation of codable object from data

  • from(data:) Default implementation

    Method that returns Generic Codable object from Data

    Default Implementation

    Declaration

    Swift

    static func from<T>(data: Data) throws -> T where T : Decodable, T : Encodable

    Parameters

    data

    Data from which the object need to be constructed