CPUTime.fromJson constructor

CPUTime.fromJson(
  1. Map _json
)

Implementation

CPUTime.fromJson(core.Map _json)
    : this(
        rate: _json.containsKey('rate')
            ? (_json['rate'] as core.num).toDouble()
            : null,
        timestamp: _json.containsKey('timestamp')
            ? _json['timestamp'] as core.String
            : null,
        totalMs: _json.containsKey('totalMs')
            ? _json['totalMs'] as core.String
            : null,
      );