CounterUpdate.fromJson constructor
CounterUpdate.fromJson(
- Map json_
Implementation
CounterUpdate.fromJson(core.Map json_)
: this(
boolean: json_.containsKey('boolean')
? json_['boolean'] as core.bool
: null,
cumulative: json_.containsKey('cumulative')
? json_['cumulative'] as core.bool
: null,
distribution: json_.containsKey('distribution')
? DistributionUpdate.fromJson(
json_['distribution'] as core.Map<core.String, core.dynamic>)
: null,
floatingPoint: json_.containsKey('floatingPoint')
? (json_['floatingPoint'] as core.num).toDouble()
: null,
floatingPointList: json_.containsKey('floatingPointList')
? FloatingPointList.fromJson(json_['floatingPointList']
as core.Map<core.String, core.dynamic>)
: null,
floatingPointMean: json_.containsKey('floatingPointMean')
? FloatingPointMean.fromJson(json_['floatingPointMean']
as core.Map<core.String, core.dynamic>)
: null,
integer: json_.containsKey('integer')
? SplitInt64.fromJson(
json_['integer'] as core.Map<core.String, core.dynamic>)
: null,
integerGauge: json_.containsKey('integerGauge')
? IntegerGauge.fromJson(
json_['integerGauge'] as core.Map<core.String, core.dynamic>)
: null,
integerList: json_.containsKey('integerList')
? IntegerList.fromJson(
json_['integerList'] as core.Map<core.String, core.dynamic>)
: null,
integerMean: json_.containsKey('integerMean')
? IntegerMean.fromJson(
json_['integerMean'] as core.Map<core.String, core.dynamic>)
: null,
internal: json_.containsKey('internal') ? json_['internal'] : null,
nameAndKind: json_.containsKey('nameAndKind')
? NameAndKind.fromJson(
json_['nameAndKind'] as core.Map<core.String, core.dynamic>)
: null,
shortId: json_.containsKey('shortId')
? json_['shortId'] as core.String
: null,
stringList: json_.containsKey('stringList')
? StringList.fromJson(
json_['stringList'] as core.Map<core.String, core.dynamic>)
: null,
structuredNameAndMetadata:
json_.containsKey('structuredNameAndMetadata')
? CounterStructuredNameAndMetadata.fromJson(
json_['structuredNameAndMetadata']
as core.Map<core.String, core.dynamic>)
: null,
);