toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (carrier != null) 'carrier': carrier!,
      if (carrierService != null) 'carrierService': carrierService!,
      if (originAdministrativeArea != null)
        'originAdministrativeArea': originAdministrativeArea!,
      if (originCity != null) 'originCity': originCity!,
      if (originCountry != null) 'originCountry': originCountry!,
      if (originPostalCode != null) 'originPostalCode': originPostalCode!,
      if (originStreetAddress != null)
        'originStreetAddress': originStreetAddress!,
      if (warehouseName != null) 'warehouseName': warehouseName!,
    };