DeviceSelector.fromJson constructor

DeviceSelector.fromJson(
  1. Map json_
)

Implementation

DeviceSelector.fromJson(core.Map json_)
    : this(
        deviceRam: json_.containsKey('deviceRam')
            ? DeviceRam.fromJson(
                json_['deviceRam'] as core.Map<core.String, core.dynamic>)
            : null,
        excludedDeviceIds: json_.containsKey('excludedDeviceIds')
            ? (json_['excludedDeviceIds'] as core.List)
                .map((value) => DeviceId.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        forbiddenSystemFeatures: json_.containsKey('forbiddenSystemFeatures')
            ? (json_['forbiddenSystemFeatures'] as core.List)
                .map((value) => SystemFeature.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        includedDeviceIds: json_.containsKey('includedDeviceIds')
            ? (json_['includedDeviceIds'] as core.List)
                .map((value) => DeviceId.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        requiredSystemFeatures: json_.containsKey('requiredSystemFeatures')
            ? (json_['requiredSystemFeatures'] as core.List)
                .map((value) => SystemFeature.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );