SasPortalDeviceConfig.fromJson constructor

SasPortalDeviceConfig.fromJson(
  1. Map _json
)

Implementation

SasPortalDeviceConfig.fromJson(core.Map _json)
    : this(
        airInterface: _json.containsKey('airInterface')
            ? SasPortalDeviceAirInterface.fromJson(
                _json['airInterface'] as core.Map<core.String, core.dynamic>)
            : null,
        callSign: _json.containsKey('callSign')
            ? _json['callSign'] as core.String
            : null,
        category: _json.containsKey('category')
            ? _json['category'] as core.String
            : null,
        installationParams: _json.containsKey('installationParams')
            ? SasPortalInstallationParams.fromJson(_json['installationParams']
                as core.Map<core.String, core.dynamic>)
            : null,
        isSigned: _json.containsKey('isSigned')
            ? _json['isSigned'] as core.bool
            : null,
        measurementCapabilities: _json.containsKey('measurementCapabilities')
            ? (_json['measurementCapabilities'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        model: _json.containsKey('model')
            ? SasPortalDeviceModel.fromJson(
                _json['model'] as core.Map<core.String, core.dynamic>)
            : null,
        state:
            _json.containsKey('state') ? _json['state'] as core.String : null,
        updateTime: _json.containsKey('updateTime')
            ? _json['updateTime'] as core.String
            : null,
        userId: _json.containsKey('userId')
            ? _json['userId'] as core.String
            : null,
      );