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,
      );