DeviceReportUpdateEvent.fromJson constructor

DeviceReportUpdateEvent.fromJson(
  1. Map json_
)

Implementation

DeviceReportUpdateEvent.fromJson(core.Map json_)
    : this(
        deviceId: json_.containsKey('deviceId')
            ? json_['deviceId'] as core.String
            : null,
        report: json_.containsKey('report')
            ? DeviceReport.fromJson(
                json_['report'] as core.Map<core.String, core.dynamic>)
            : null,
        userId: json_.containsKey('userId')
            ? json_['userId'] as core.String
            : null,
      );