AssetFrame.fromJson constructor
AssetFrame.fromJson(
- Map json_
Implementation
AssetFrame.fromJson(core.Map json_)
: this(
attributes: json_.containsKey('attributes')
? (json_['attributes'] as core.Map<core.String, core.dynamic>)
.map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
collectionType: json_.containsKey('collectionType')
? json_['collectionType'] as core.String
: 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,
machineDetails: json_.containsKey('machineDetails')
? MachineDetails.fromJson(json_['machineDetails']
as core.Map<core.String, core.dynamic>)
: null,
performanceSamples: json_.containsKey('performanceSamples')
? (json_['performanceSamples'] as core.List)
.map((value) => PerformanceSample.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
reportTime: json_.containsKey('reportTime')
? json_['reportTime'] as core.String
: null,
traceToken: json_.containsKey('traceToken')
? json_['traceToken'] as core.String
: null,
);