Environment.fromJson constructor
Environment.fromJson(
- Map _json
Implementation
Environment.fromJson(core.Map _json)
: this(
completionTime: _json.containsKey('completionTime')
? Timestamp.fromJson(_json['completionTime']
as core.Map<core.String, core.dynamic>)
: null,
creationTime: _json.containsKey('creationTime')
? Timestamp.fromJson(
_json['creationTime'] as core.Map<core.String, core.dynamic>)
: null,
dimensionValue: _json.containsKey('dimensionValue')
? (_json['dimensionValue'] as core.List)
.map((value) => EnvironmentDimensionValueEntry.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
displayName: _json.containsKey('displayName')
? _json['displayName'] as core.String
: null,
environmentId: _json.containsKey('environmentId')
? _json['environmentId'] as core.String
: null,
environmentResult: _json.containsKey('environmentResult')
? MergedResult.fromJson(_json['environmentResult']
as core.Map<core.String, core.dynamic>)
: null,
executionId: _json.containsKey('executionId')
? _json['executionId'] as core.String
: null,
historyId: _json.containsKey('historyId')
? _json['historyId'] as core.String
: null,
projectId: _json.containsKey('projectId')
? _json['projectId'] as core.String
: null,
resultsStorage: _json.containsKey('resultsStorage')
? ResultsStorage.fromJson(_json['resultsStorage']
as core.Map<core.String, core.dynamic>)
: null,
shardSummaries: _json.containsKey('shardSummaries')
? (_json['shardSummaries'] as core.List)
.map((value) => ShardSummary.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);