Manos Chorianopoulos

add ProfileModel extra constructor

...@@ -762,6 +762,44 @@ public class swiftApi { ...@@ -762,6 +762,44 @@ public class swiftApi {
762 public let optin_sms_segmentation: Bool? 762 public let optin_sms_segmentation: Bool?
763 763
764 764
765 + init() {
766 + self.ack_optin = false
767 + self.billing_info = [String: Any]()
768 + self.birthday = ""
769 + self.burnt_points = 0.0
770 + self.company_name = ""
771 + self.consumer_metadata = [String: Any]()
772 + self.display_name = ""
773 + self.email = ""
774 + self.firstname = ""
775 + self.gender = ""
776 + self.image_url = ""
777 + self.language = ""
778 + self.lastname = ""
779 + self.loyalty_id = ""
780 + self.msisdn = ""
781 + self.nameday = ""
782 + self.nickname = ""
783 + self.password_set = false
784 + self.profile_metadata = [String: Any]()
785 + self.redeemed_points = 0.0
786 + self.retrieved_points = 0.0
787 + self.salutation = ""
788 + self.subscribe = false
789 + self.tags = [String: Any]()
790 + self.tax_id = ""
791 + self.user_points = 0.0
792 + self.uuid = ""
793 + self.verified = false
794 +
795 + // optin
796 + self.optin_newsletter = false
797 + self.optin_sms = false
798 + self.optin_segmentation = false
799 + self.optin_sms_segmentation = false
800 +
801 + }
802 +
765 init(dictionary: [String: Any]) { 803 init(dictionary: [String: Any]) {
766 self.ack_optin = dictionary["ack_optin"] as? Bool? ?? false 804 self.ack_optin = dictionary["ack_optin"] as? Bool? ?? false
767 self.billing_info = dictionary["billing_info"] as? [String: Any]? ?? ["":""] 805 self.billing_info = dictionary["billing_info"] as? [String: Any]? ?? ["":""]
......