ChangeChromeOsDeviceStatusResult.fromJson constructor

ChangeChromeOsDeviceStatusResult.fromJson(
  1. Map json_
)

Implementation

ChangeChromeOsDeviceStatusResult.fromJson(core.Map json_)
    : this(
        deviceId: json_.containsKey('deviceId')
            ? json_['deviceId'] as core.String
            : null,
        error: json_.containsKey('error')
            ? Status.fromJson(
                json_['error'] as core.Map<core.String, core.dynamic>)
            : null,
        response: json_.containsKey('response')
            ? ChangeChromeOsDeviceStatusSucceeded.fromJson(
                json_['response'] as core.Map<core.String, core.dynamic>)
            : null,
      );