Location.fromJson constructor

Location.fromJson(
  1. Map _json
)

Implementation

Location.fromJson(core.Map _json) {
  if (_json.containsKey("displayName")) {
    displayName = _json["displayName"];
  }
  if (_json.containsKey("labels")) {
    labels = (_json["labels"] as core.Map).cast<core.String, core.String>();
  }
  if (_json.containsKey("locationId")) {
    locationId = _json["locationId"];
  }
  if (_json.containsKey("metadata")) {
    metadata =
        (_json["metadata"] as core.Map).cast<core.String, core.Object>();
  }
  if (_json.containsKey("name")) {
    name = _json["name"];
  }
}