toJson method
Implementation
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['firstName'] = firstName;
map['lastName'] = lastName;
map['address'] = address;
map['country'] = country;
map['city'] = city;
map['zip'] = zip;
map['email'] = email;
map['phone'] = phone;
map['ip'] = ip;
if (options != null) {
map['options'] = options?.toJson();
}
return map;
}