AndroidDeviceCatalog.fromJson constructor

AndroidDeviceCatalog.fromJson(
  1. Map json_
)

Implementation

AndroidDeviceCatalog.fromJson(core.Map json_)
    : this(
        models: json_.containsKey('models')
            ? (json_['models'] as core.List)
                .map((value) => AndroidModel.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        runtimeConfiguration: json_.containsKey('runtimeConfiguration')
            ? AndroidRuntimeConfiguration.fromJson(
                json_['runtimeConfiguration']
                    as core.Map<core.String, core.dynamic>)
            : null,
        versions: json_.containsKey('versions')
            ? (json_['versions'] as core.List)
                .map((value) => AndroidVersion.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );