PerfSample.fromJson constructor
PerfSample.fromJson(
- Map _json
Implementation
PerfSample.fromJson(core.Map _json)
: this(
sampleTime: _json.containsKey('sampleTime')
? Timestamp.fromJson(
_json['sampleTime'] as core.Map<core.String, core.dynamic>)
: null,
value: _json.containsKey('value')
? (_json['value'] as core.num).toDouble()
: null,
);