GoogleChromeManagementV1BatterySampleReport.fromJson constructor

GoogleChromeManagementV1BatterySampleReport.fromJson(
  1. Map json_
)

Implementation

GoogleChromeManagementV1BatterySampleReport.fromJson(core.Map json_)
    : this(
        chargeRate: json_.containsKey('chargeRate')
            ? json_['chargeRate'] as core.int
            : null,
        current: json_.containsKey('current')
            ? json_['current'] as core.String
            : null,
        dischargeRate: json_.containsKey('dischargeRate')
            ? json_['dischargeRate'] as core.int
            : null,
        remainingCapacity: json_.containsKey('remainingCapacity')
            ? json_['remainingCapacity'] as core.String
            : null,
        reportTime: json_.containsKey('reportTime')
            ? json_['reportTime'] as core.String
            : null,
        status: json_.containsKey('status')
            ? json_['status'] as core.String
            : null,
        temperature: json_.containsKey('temperature')
            ? json_['temperature'] as core.int
            : null,
        voltage: json_.containsKey('voltage')
            ? json_['voltage'] as core.String
            : null,
      );