fromJson static method

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

Implementation

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

  return LocationAddress(
    countryCode: (json['country_code'] as String?) ?? '',
    state: (json['state'] as String?) ?? '',
    city: (json['city'] as String?) ?? '',
    street: (json['street'] as String?) ?? '',
  );
}