DeviceInfo.fromJson constructor

DeviceInfo.fromJson(
  1. Map json_
)

Implementation

DeviceInfo.fromJson(core.Map json_)
    : this(
        hwVersion: json_.containsKey('hwVersion')
            ? json_['hwVersion'] as core.String
            : null,
        manufacturer: json_.containsKey('manufacturer')
            ? json_['manufacturer'] as core.String
            : null,
        model:
            json_.containsKey('model') ? json_['model'] as core.String : null,
        swVersion: json_.containsKey('swVersion')
            ? json_['swVersion'] as core.String
            : null,
      );