Collector.fromJson constructor
Collector.fromJson(
- Map json_
Implementation
Collector.fromJson(core.Map json_)
: this(
bucket: json_.containsKey('bucket')
? json_['bucket'] as core.String
: null,
clientVersion: json_.containsKey('clientVersion')
? json_['clientVersion'] as core.String
: null,
collectionDays: json_.containsKey('collectionDays')
? json_['collectionDays'] as core.int
: null,
createTime: json_.containsKey('createTime')
? json_['createTime'] as core.String
: null,
description: json_.containsKey('description')
? json_['description'] as core.String
: null,
displayName: json_.containsKey('displayName')
? json_['displayName'] as core.String
: null,
eulaUri: json_.containsKey('eulaUri')
? json_['eulaUri'] as core.String
: null,
expectedAssetCount: json_.containsKey('expectedAssetCount')
? json_['expectedAssetCount'] as core.String
: null,
guestOsScan: json_.containsKey('guestOsScan')
? GuestOsScan.fromJson(
json_['guestOsScan'] as core.Map<core.String, core.dynamic>)
: null,
labels: json_.containsKey('labels')
? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
serviceAccount: json_.containsKey('serviceAccount')
? json_['serviceAccount'] as core.String
: null,
state:
json_.containsKey('state') ? json_['state'] as core.String : null,
updateTime: json_.containsKey('updateTime')
? json_['updateTime'] as core.String
: null,
vsphereScan: json_.containsKey('vsphereScan')
? VSphereScan.fromJson(
json_['vsphereScan'] as core.Map<core.String, core.dynamic>)
: null,
);