AssetJSONDecoder
public protocol AssetJSONDecoder
Public interface allowing creation of codable object from data
-
from(data:)
Default implementationMethod that returns Generic
Codable
object fromData
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