Manos Chorianopoulos

add ProfileModel extra constructor

......@@ -762,6 +762,44 @@ public class swiftApi {
public let optin_sms_segmentation: Bool?
init() {
self.ack_optin = false
self.billing_info = [String: Any]()
self.birthday = ""
self.burnt_points = 0.0
self.company_name = ""
self.consumer_metadata = [String: Any]()
self.display_name = ""
self.email = ""
self.firstname = ""
self.gender = ""
self.image_url = ""
self.language = ""
self.lastname = ""
self.loyalty_id = ""
self.msisdn = ""
self.nameday = ""
self.nickname = ""
self.password_set = false
self.profile_metadata = [String: Any]()
self.redeemed_points = 0.0
self.retrieved_points = 0.0
self.salutation = ""
self.subscribe = false
self.tags = [String: Any]()
self.tax_id = ""
self.user_points = 0.0
self.uuid = ""
self.verified = false
// optin
self.optin_newsletter = false
self.optin_sms = false
self.optin_segmentation = false
self.optin_sms_segmentation = false
}
init(dictionary: [String: Any]) {
self.ack_optin = dictionary["ack_optin"] as? Bool? ?? false
self.billing_info = dictionary["billing_info"] as? [String: Any]? ?? ["":""]
......