PerfSample.fromJson constructor

PerfSample.fromJson(
  1. 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,
      );