Reservation.fromJson constructor
Reservation.fromJson(
- Map json_
Implementation
Reservation.fromJson(core.Map json_)
: this(
aggregateReservation: json_.containsKey('aggregateReservation')
? AllocationAggregateReservation.fromJson(
json_['aggregateReservation']
as core.Map<core.String, core.dynamic>)
: null,
commitment: json_.containsKey('commitment')
? json_['commitment'] as core.String
: null,
creationTimestamp: json_.containsKey('creationTimestamp')
? json_['creationTimestamp'] as core.String
: null,
description: json_.containsKey('description')
? json_['description'] as core.String
: null,
id: json_.containsKey('id') ? json_['id'] as core.String : null,
kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
resourcePolicies: json_.containsKey('resourcePolicies')
? (json_['resourcePolicies']
as core.Map<core.String, core.dynamic>)
.map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
resourceStatus: json_.containsKey('resourceStatus')
? AllocationResourceStatus.fromJson(json_['resourceStatus']
as core.Map<core.String, core.dynamic>)
: null,
satisfiesPzs: json_.containsKey('satisfiesPzs')
? json_['satisfiesPzs'] as core.bool
: null,
selfLink: json_.containsKey('selfLink')
? json_['selfLink'] as core.String
: null,
shareSettings: json_.containsKey('shareSettings')
? ShareSettings.fromJson(
json_['shareSettings'] as core.Map<core.String, core.dynamic>)
: null,
specificReservation: json_.containsKey('specificReservation')
? AllocationSpecificSKUReservation.fromJson(
json_['specificReservation']
as core.Map<core.String, core.dynamic>)
: null,
specificReservationRequired:
json_.containsKey('specificReservationRequired')
? json_['specificReservationRequired'] as core.bool
: null,
status: json_.containsKey('status')
? json_['status'] as core.String
: null,
zone: json_.containsKey('zone') ? json_['zone'] as core.String : null,
);