LocationAddress constructor

const LocationAddress({
  1. @JsonKey(name: 'country_code') required String countryCode,
  2. @JsonKey(name: 'state') String? state,
  3. @JsonKey(name: 'city') String? city,
  4. @JsonKey(name: 'street') String? street,
})

Creates a new LocationAddress object.

Implementation

const factory LocationAddress({
  /// The two-letter ISO 3166-1 alpha-2 country code of the country where the location is located
  @JsonKey(name: 'country_code') required String countryCode,

  /// Optional. State of the location
  @JsonKey(name: 'state') String? state,

  /// Optional. City of the location
  @JsonKey(name: 'city') String? city,

  /// Optional. Street address of the location
  @JsonKey(name: 'street') String? street,
}) = _LocationAddress;