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_['excludedDeviceIds'] as core.List?)
            ?.map((value) => DeviceId.fromJson(
                value as core.Map<core.String, core.dynamic>))
            .toList(),
        forbiddenSystemFeatures:
            (json_['forbiddenSystemFeatures'] as core.List?)
                ?.map((value) => SystemFeature.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList(),
        includedDeviceIds: (json_['includedDeviceIds'] as core.List?)
            ?.map((value) => DeviceId.fromJson(
                value as core.Map<core.String, core.dynamic>))
            .toList(),
        requiredSystemFeatures:
            (json_['requiredSystemFeatures'] as core.List?)
                ?.map((value) => SystemFeature.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList(),
        systemOnChips: (json_['systemOnChips'] as core.List?)
            ?.map((value) => SystemOnChip.fromJson(
                value as core.Map<core.String, core.dynamic>))
            .toList(),
      );