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