Device.fromJson constructor

Device.fromJson(
  1. Map json_
)

Implementation

Device.fromJson(core.Map json_)
    : this(
        manufacturer: json_.containsKey('manufacturer')
            ? json_['manufacturer'] as core.String
            : null,
        model:
            json_.containsKey('model') ? json_['model'] as core.String : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
        uid: json_.containsKey('uid') ? json_['uid'] as core.String : null,
        version: json_.containsKey('version')
            ? json_['version'] as core.String
            : null,
      );