Skip to content

Commit

Permalink
Update Card+Face.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
nsluke committed Feb 9, 2025
1 parent 4d0c612 commit b606e22
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Sources/ScryfallKit/Models/Card/Card+Face.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,26 @@ extension Card {
/// This card's watermark, if any
public var watermark: String?

enum CodingKeys: String, CodingKey {
case artist
case colorIndicator = "color_indicator"
case colors
case flavorText = "flavor_text"
case illustrationId = "illustration_id"
case imageUris = "image_uris"
case loyalty
case manaCost = "mana_cost"
case name
case oracleText = "oracle_text"
case power
case printedName = "printed_name"
case printedText = "printed_text"
case printedTypeLine = "printed_type_line"
case toughness
case typeLine = "type_line"
case watermark
}

public init(
artist: String? = nil,
colorIndicator: [Card.Color]? = nil,
Expand Down

0 comments on commit b606e22

Please sign in to comment.