IosModel.fromJson constructor

IosModel.fromJson(
  1. Map json_
)

Implementation

IosModel.fromJson(core.Map json_)
    : this(
        deviceCapabilities: json_.containsKey('deviceCapabilities')
            ? (json_['deviceCapabilities'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        formFactor: json_.containsKey('formFactor')
            ? json_['formFactor'] as core.String
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        perVersionInfo: json_.containsKey('perVersionInfo')
            ? (json_['perVersionInfo'] as core.List)
                .map((value) => PerIosVersionInfo.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        screenDensity: json_.containsKey('screenDensity')
            ? json_['screenDensity'] as core.int
            : null,
        screenX: json_.containsKey('screenX')
            ? json_['screenX'] as core.int
            : null,
        screenY: json_.containsKey('screenY')
            ? json_['screenY'] as core.int
            : null,
        supportedVersionIds: json_.containsKey('supportedVersionIds')
            ? (json_['supportedVersionIds'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        tags: json_.containsKey('tags')
            ? (json_['tags'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );