//
//  UserRegPostModel.swift
//  WOKA
//
//  Created by MacBook Pro on 07/05/24.
//

import Foundation

struct UserRegPostModel: Encodable {
    var full_name: String?
    var username : String?
    var password : String?
    var gender : Int? //mandatory (1 for girl/female, 2 for boy/male)
    var birthdate: String? //2015-11-1
    var email: String?
    var guardian_email: String?
    var user_type: String?
    var language_id: String?
    var interest_topic_id: [Int]?
    var avtar: String?
    var add_child: String?
    var one_signal_player_id : String?
    
    var dictionaryRepresentation: [String: Any] {
        return [
            "full_name": full_name ?? "",
            "username" : username ?? "",
            "password" : password ?? "",
            "gender" : gender ?? "",
            "birthdate": birthdate ?? "",
            "email": email ?? "",
            "guardian_email": guardian_email ?? nil,
            "one_signal_player_id" : one_signal_player_id ?? "",
            "user_type": user_type ?? "",
            "language_id": language_id ?? "",
            "interest_topic_id": interest_topic_id ?? [],
            "avtar": avtar ?? "",
            "add_child": add_child ?? "",
        ]
    }
}
