MDObject
public struct MDObject<T> : Decodable where T : Decodable
Structure representing an object returned by the MangaDex API
-
This object’s ID
Declaration
Swift
public let objectId: String
-
The kind of object encoded
Declaration
Swift
public let objectType: MDObjectType
-
The data returned by the API
This is decoded as one of MangaDexLib’s structures for ease of use
Declaration
Swift
public let data: T