IosDeviceCatalog.fromJson constructor

IosDeviceCatalog.fromJson(
  1. Map json_
)

Implementation

IosDeviceCatalog.fromJson(core.Map json_)
    : this(
        models: json_.containsKey('models')
            ? (json_['models'] as core.List)
                .map((value) => IosModel.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        runtimeConfiguration: json_.containsKey('runtimeConfiguration')
            ? IosRuntimeConfiguration.fromJson(json_['runtimeConfiguration']
                as core.Map<core.String, core.dynamic>)
            : null,
        versions: json_.containsKey('versions')
            ? (json_['versions'] as core.List)
                .map((value) => IosVersion.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        xcodeVersions: json_.containsKey('xcodeVersions')
            ? (json_['xcodeVersions'] as core.List)
                .map((value) => XcodeVersion.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );