fromJson static method

ExternalServicePatchAddress? fromJson(
  1. Map<String, dynamic>? json
)

Returns a new ExternalServicePatchAddress instance and imports its values from json if it's non-null, null if json is null.

Implementation

static ExternalServicePatchAddress? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return ExternalServicePatchAddress(
    locality: json[r'locality'],
    postalCode: json[r'postalCode'],
    streetAddress: json[r'streetAddress'],
  );
}