DeviceReference.fromJson constructor

DeviceReference.fromJson(
  1. Map json_
)

Implementation

DeviceReference.fromJson(core.Map json_)
    : this(
        deviceId: json_.containsKey('deviceId')
            ? json_['deviceId'] as core.String
            : null,
        deviceIdentifier: json_.containsKey('deviceIdentifier')
            ? DeviceIdentifier.fromJson(json_['deviceIdentifier']
                as core.Map<core.String, core.dynamic>)
            : null,
      );