MetricUpdate.fromJson constructor
MetricUpdate.fromJson(
- Map json_
Implementation
MetricUpdate.fromJson(core.Map json_)
: this(
cumulative: json_.containsKey('cumulative')
? json_['cumulative'] as core.bool
: null,
distribution:
json_.containsKey('distribution') ? json_['distribution'] : null,
gauge: json_.containsKey('gauge') ? json_['gauge'] : null,
internal: json_.containsKey('internal') ? json_['internal'] : null,
kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
meanCount: json_.containsKey('meanCount') ? json_['meanCount'] : null,
meanSum: json_.containsKey('meanSum') ? json_['meanSum'] : null,
name: json_.containsKey('name')
? MetricStructuredName.fromJson(
json_['name'] as core.Map<core.String, core.dynamic>)
: null,
scalar: json_.containsKey('scalar') ? json_['scalar'] : null,
set: json_.containsKey('set') ? json_['set'] : null,
updateTime: json_.containsKey('updateTime')
? json_['updateTime'] as core.String
: null,
);