$SasPortalDeviceModel.fromJson constructor

$SasPortalDeviceModel.fromJson(
  1. Map _json
)

Implementation

$SasPortalDeviceModel.fromJson(core.Map _json)
    : this(
        firmwareVersion: _json.containsKey('firmwareVersion')
            ? _json['firmwareVersion'] as core.String
            : null,
        hardwareVersion: _json.containsKey('hardwareVersion')
            ? _json['hardwareVersion'] as core.String
            : null,
        name: _json.containsKey('name') ? _json['name'] as core.String : null,
        softwareVersion: _json.containsKey('softwareVersion')
            ? _json['softwareVersion'] as core.String
            : null,
        vendor: _json.containsKey('vendor')
            ? _json['vendor'] as core.String
            : null,
      );