MDLocalizedString
public struct MDLocalizedString
extension MDLocalizedString: Decodable
extension MDLocalizedString: Encodable
Structure representing a string in a given language returned by MangaDex
-
The available translated strings
Declaration
Swift
public let translations: [Locale : String] -
Custom
initimplementation to flatten the JSON and convert it to meaningful parametersDeclaration
Swift
public init(from decoder: Decoder) throws -
Custom
encodeimplementation to convert our attributes to the ones expected by the MangaDex APIDeclaration
Swift
public func encode(to encoder: Encoder) throws
View on GitHub
MDLocalizedString Structure Reference