Commitment.fromJson constructor
Commitment.fromJson(
- Map json_
Implementation
Commitment.fromJson(core.Map json_)
: this(
autoRenew: json_.containsKey('autoRenew')
? json_['autoRenew'] as core.bool
: null,
category: json_.containsKey('category')
? json_['category'] as core.String
: null,
creationTimestamp: json_.containsKey('creationTimestamp')
? json_['creationTimestamp'] as core.String
: null,
description: json_.containsKey('description')
? json_['description'] as core.String
: null,
endTimestamp: json_.containsKey('endTimestamp')
? json_['endTimestamp'] as core.String
: null,
existingReservations: json_.containsKey('existingReservations')
? (json_['existingReservations'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
id: json_.containsKey('id') ? json_['id'] as core.String : null,
kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
licenseResource: json_.containsKey('licenseResource')
? LicenseResourceCommitment.fromJson(json_['licenseResource']
as core.Map<core.String, core.dynamic>)
: null,
mergeSourceCommitments: json_.containsKey('mergeSourceCommitments')
? (json_['mergeSourceCommitments'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
plan: json_.containsKey('plan') ? json_['plan'] as core.String : null,
region: json_.containsKey('region')
? json_['region'] as core.String
: null,
reservations: json_.containsKey('reservations')
? (json_['reservations'] as core.List)
.map((value) => Reservation.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
resources: json_.containsKey('resources')
? (json_['resources'] as core.List)
.map((value) => ResourceCommitment.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
selfLink: json_.containsKey('selfLink')
? json_['selfLink'] as core.String
: null,
splitSourceCommitment: json_.containsKey('splitSourceCommitment')
? json_['splitSourceCommitment'] as core.String
: null,
startTimestamp: json_.containsKey('startTimestamp')
? json_['startTimestamp'] as core.String
: null,
status: json_.containsKey('status')
? json_['status'] as core.String
: null,
statusMessage: json_.containsKey('statusMessage')
? json_['statusMessage'] as core.String
: null,
type: json_.containsKey('type') ? json_['type'] as core.String : null,
);