//
//  CharacterModel.swift
//  AiKeyboard
//
//  Created by Destiny on 2025/4/29.
//

import Foundation
import ObjectMapper

// MARK: Initializer and Properties
struct CharacterModel: Mappable {

    var id: String?
    
    var name: String?
    
    var imageUrl: Int?
    
    var description: String?
    
    var emoji: String?
    
    var isVip: Bool?
    
    var birthday: String?
    
    var hobbies: [String]?
    
    var characters: [String]?
    
    var gender: Int?

    // MARK: JSON
    init?(map: Map) { }

    mutating func mapping(map: Map) {
        id <- map["id"]
        name <- map["name"]
        imageUrl <- map["imageUrl"]
        description <- map["description"]
        emoji <- map["emoji"]
        isVip <- map["isVip"]
        birthday <- map["birthday"]
        hobbies <- map["hobbies"]
        characters <- map["characters"]
        gender <- map["gender"]
    }
}
