DataPoint.fromJson constructor
DataPoint.fromJson(
- Map json_
Implementation
DataPoint.fromJson(core.Map json_)
: this(
computationTimeMillis: json_.containsKey('computationTimeMillis')
? json_['computationTimeMillis'] as core.String
: null,
dataTypeName: json_.containsKey('dataTypeName')
? json_['dataTypeName'] as core.String
: null,
endTimeNanos: json_.containsKey('endTimeNanos')
? json_['endTimeNanos'] as core.String
: null,
modifiedTimeMillis: json_.containsKey('modifiedTimeMillis')
? json_['modifiedTimeMillis'] as core.String
: null,
originDataSourceId: json_.containsKey('originDataSourceId')
? json_['originDataSourceId'] as core.String
: null,
rawTimestampNanos: json_.containsKey('rawTimestampNanos')
? json_['rawTimestampNanos'] as core.String
: null,
startTimeNanos: json_.containsKey('startTimeNanos')
? json_['startTimeNanos'] as core.String
: null,
value: json_.containsKey('value')
? (json_['value'] as core.List)
.map((value) => Value.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);