toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (country != null) 'country': country!,
      if (fullAddress != null) 'fullAddress': fullAddress!,
      if (isPostOfficeBox != null) 'isPostOfficeBox': isPostOfficeBox!,
      if (locality != null) 'locality': locality!,
      if (postalCode != null) 'postalCode': postalCode!,
      if (recipientName != null) 'recipientName': recipientName!,
      if (region != null) 'region': region!,
      if (streetAddress != null) 'streetAddress': streetAddress!,
    };