AndroidModel.fromJson constructor

AndroidModel.fromJson(
  1. Map _json
)

Implementation

AndroidModel.fromJson(core.Map _json)
    : this(
        brand:
            _json.containsKey('brand') ? _json['brand'] as core.String : null,
        codename: _json.containsKey('codename')
            ? _json['codename'] as core.String
            : null,
        form: _json.containsKey('form') ? _json['form'] as core.String : null,
        formFactor: _json.containsKey('formFactor')
            ? _json['formFactor'] as core.String
            : null,
        id: _json.containsKey('id') ? _json['id'] as core.String : null,
        lowFpsVideoRecording: _json.containsKey('lowFpsVideoRecording')
            ? _json['lowFpsVideoRecording'] as core.bool
            : null,
        manufacturer: _json.containsKey('manufacturer')
            ? _json['manufacturer'] 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,
        supportedAbis: _json.containsKey('supportedAbis')
            ? (_json['supportedAbis'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : 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,
        thumbnailUrl: _json.containsKey('thumbnailUrl')
            ? _json['thumbnailUrl'] as core.String
            : null,
      );