//
//  PrologueModel.swift
//  AiKeyboard
//
//  Created by Destiny on 2025/4/30.
//

import Foundation
import ObjectMapper

struct PrologueModel: Mappable {
    
    var title: String?
    
    var topics: [PrologueTopicModel]?

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

    mutating func mapping(map: Map) {
        title <- map["title"]
        topics <- map["topics"]
    }
}

struct PrologueTopicModel: Mappable {
    
    var name: String?

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

    mutating func mapping(map: Map) {
        name <- map["name"]
    }
}
