MetricValue.fromJson constructor
MetricValue.fromJson(
- Map json_
Implementation
MetricValue.fromJson(core.Map json_)
: this(
boolValue: json_.containsKey('boolValue')
? json_['boolValue'] as core.bool
: null,
distributionValue: json_.containsKey('distributionValue')
? Distribution.fromJson(json_['distributionValue']
as core.Map<core.String, core.dynamic>)
: null,
doubleValue: json_.containsKey('doubleValue')
? (json_['doubleValue'] as core.num).toDouble()
: null,
endTime: json_.containsKey('endTime')
? json_['endTime'] as core.String
: null,
int64Value: json_.containsKey('int64Value')
? json_['int64Value'] 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,
moneyValue: json_.containsKey('moneyValue')
? Money.fromJson(
json_['moneyValue'] as core.Map<core.String, core.dynamic>)
: null,
startTime: json_.containsKey('startTime')
? json_['startTime'] as core.String
: null,
stringValue: json_.containsKey('stringValue')
? json_['stringValue'] as core.String
: null,
);