toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  if (country != null) 'country': country!.toJson(),
  'addressLine1': addressLine1,
  'addressLine2': addressLine2,
  if (city != null) 'city': city!,
  if (province != null) 'province': province!,
};