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,
      );