code = 200;
msg = "Verification_OTP";
result = {
"customer_email" = "ghg@Gmail.com";
"customer_name" = we;
"customer_phone" = 1234567890;
otp = 658715;
"user_id" = 135;
};
I am unable to parse i got nil in response.Here is my code
struct Root: Codable {
let code: Int?
let msg: String?
let customerModel: Result?
}
struct Result: Codable {
let customerName:String?
let customerEmail:String?
let customerMobile:String?
let otp:Int?
let userId:Int?
enum CodingKeys: String ,CodingKey {
case customerName = "customer_name"
case customerEmail = "customer_email"
case customerMobile = "customer_no"
case userId = "user_id"
case otp = "otp"
}
}