Reservation.fromJson constructor

Reservation.fromJson(
  1. Map _json
)

Implementation

Reservation.fromJson(core.Map _json) {
  if (_json.containsKey("commitment")) {
    commitment = _json["commitment"];
  }
  if (_json.containsKey("creationTimestamp")) {
    creationTimestamp = _json["creationTimestamp"];
  }
  if (_json.containsKey("description")) {
    description = _json["description"];
  }
  if (_json.containsKey("id")) {
    id = _json["id"];
  }
  if (_json.containsKey("kind")) {
    kind = _json["kind"];
  }
  if (_json.containsKey("name")) {
    name = _json["name"];
  }
  if (_json.containsKey("selfLink")) {
    selfLink = _json["selfLink"];
  }
  if (_json.containsKey("specificReservation")) {
    specificReservation = new AllocationSpecificSKUReservation.fromJson(
        _json["specificReservation"]);
  }
  if (_json.containsKey("specificReservationRequired")) {
    specificReservationRequired = _json["specificReservationRequired"];
  }
  if (_json.containsKey("status")) {
    status = _json["status"];
  }
  if (_json.containsKey("zone")) {
    zone = _json["zone"];
  }
}