DeviceCompatibilityRequirements.fromJson constructor

DeviceCompatibilityRequirements.fromJson(
  1. Map json_
)

Implementation

DeviceCompatibilityRequirements.fromJson(core.Map json_)
  : this(
      compatibleScreens: (json_['compatibleScreens'] as core.List?)
          ?.map(
            (value) => CompatibleScreen.fromJson(
              value as core.Map<core.String, core.dynamic>,
            ),
          )
          .toList(),
      glEsVersion: json_['glEsVersion'] as core.int?,
      isScreenRequired: json_['isScreenRequired'] as core.bool?,
      nativePlatforms: (json_['nativePlatforms'] as core.List?)
          ?.map((value) => value as core.String)
          .toList(),
      requiredSoftwareLibraries:
          (json_['requiredSoftwareLibraries'] as core.List?)
              ?.map((value) => value as core.String)
              .toList(),
      requiredSystemFeatures: (json_['requiredSystemFeatures'] as core.List?)
          ?.map((value) => value as core.String)
          .toList(),
      requiresSmallestWidthDp:
          json_['requiresSmallestWidthDp'] as core.String?,
      sdkVersion: json_.containsKey('sdkVersion')
          ? CatalogSdkVersion.fromJson(
              json_['sdkVersion'] as core.Map<core.String, core.dynamic>,
            )
          : null,
      supportedGlTextures: (json_['supportedGlTextures'] as core.List?)
          ?.map((value) => value as core.String)
          .toList(),
      supportedScreens: (json_['supportedScreens'] as core.List?)
          ?.map((value) => value as core.String)
          .toList(),
      use32BitAbi: json_['use32BitAbi'] as core.String?,
      usesConfigurations: (json_['usesConfigurations'] as core.List?)
          ?.map(
            (value) => UsesConfiguration.fromJson(
              value as core.Map<core.String, core.dynamic>,
            ),
          )
          .toList(),
    );