RMCharacterModel

public struct RMCharacterModel : Codable, Identifiable

Character struct for decoding character json response.

Properties

  • id: The id of the character.
  • name: The name of the character.
  • status: The status of the character (‘Alive’, ‘Dead’ or ‘unknown’).
  • species: The species of the character.
  • type: The type or subspecies of the character.
  • gender: The gender of the character (‘Female’, ‘Male’, ‘Genderless’ or ‘unknown’).
  • origin: Name and link to the character’s origin location.
  • location: Name and link to the character’s last known location endpoint.
  • image: Link to the character’s image. All images are 300x300px and most are medium shots or portraits since they are intended to be used as avatars.
  • episodes: List of episodes in which this character appeared.
  • url: Link to the character’s own URL endpoint.
  • created: Time at which the character was created in the database.
  • id

    Declaration

    Swift

    public let id: Int
  • Undocumented

    Declaration

    Swift

    public let name: String
  • Undocumented

    Declaration

    Swift

    public let status: String
  • Undocumented

    Declaration

    Swift

    public let species: String
  • Undocumented

    Declaration

    Swift

    public let type: String
  • Undocumented

    Declaration

    Swift

    public let gender: String
  • Undocumented

    Declaration

    Swift

    public let origin: RMCharacterOriginModel
  • Undocumented

    Declaration

    Swift

    public let location: RMCharacterLocationModel
  • Undocumented

    Declaration

    Swift

    public let image: String
  • Undocumented

    Declaration

    Swift

    public let episode: [String]
  • url

    Undocumented

    Declaration

    Swift

    public let url: String
  • Undocumented

    Declaration

    Swift

    public let created: String