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