class User { late int id; late int organisation_id; late String username; late String surname; late String name; late String address; late String city; late String cap; late String tax_code; late String photo; late String birthplace; late String birthday; late String gender; late int language_id; late int actor_id; late String otp; late String otp_redirect_url; late String otp_expires; late String timezone; late String profiles; late dynamic emails; late dynamic mobile_phones; late dynamic phones; late dynamic mobile_menu; bool notifications = false; Map toJson() => { 'id': id, 'organisation_id': organisation_id, 'username': username, 'surname': surname, 'name': name, 'address': address, 'city': city, 'cap': cap, 'tax_code': tax_code, 'photo': photo, 'birthplace': birthplace, 'gender': gender, 'language_id': language_id, 'actor_id': actor_id, 'otp': otp, 'otp_redirect_url': otp_redirect_url, 'otp_expires': otp_expires, 'timezone': timezone, 'emails': emails, 'mobile_phones': mobile_phones, 'mobile_menu': mobile_menu, 'phones': phones, 'notifications': notifications, 'profiles': profiles }; User.fromJson(Map json) : this.id = (json['id'] != null ? json['id'] : 0), this.organisation_id = (json['organisation_id'] != null ? json['organisation_id'] : 0), this.username = (json['username'] != null ? json['username'].toString() : ""), this.surname = (json['surname'] != null ? json['surname'].toString() : ""), this.name = (json['name'] != null ? json['name'].toString() : ""), this.address = (json['address'] != null ? json['address'].toString() : ""), this.city = (json['city'] != null ? json['city'].toString() : ""), this.cap = (json['cap'] != null ? json['cap'].toString() : ""), this.tax_code = (json['tax_code'] != null ? json['tax_code'].toString() : ""), this.photo = (json['photo'] != null ? json['photo'].toString() : ""), this.birthplace = (json['birthplace'] != null ? json['birthplace'].toString() : ""), this.gender = (json['gender'] != null ? json['gender'].toString() : ""), this.language_id = (json['language_id'] != null ? json['language_id'] : 0), this.actor_id = (json['actor_id'] != null ? json['actor_id'] : 0), this.otp = (json['otp'] != null ? json['otp'].toString() : ""), this.otp_redirect_url = (json['otp_redirect_url'] != null ? json['otp_redirect_url'].toString() : ""), this.emails = (json['emails'] != null ? json['emails'] : []), this.mobile_phones = (json['mobile_phones'] != null ? json['mobile_phones'] : []), this.mobile_menu = (json['mobile_menu'] != null ? json['mobile_menu'] : []), this.phones = (json['phones'] != null ? json['phones'] : []), this.otp_expires = (json['otp_expires'] != null ? json['otp_expires'].toString() : ""), this.timezone = (json['timezone'] != null ? json['timezone'].toString() : ""), this.profiles = (json['profiles'] != null ? json['profiles'].toString() : ""), this.notifications = (json['notifications']); User() {} }