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,
        perVersionInfo: json_.containsKey('perVersionInfo')
            ? (json_['perVersionInfo'] as core.List)
                .map((value) => PerAndroidVersionInfo.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,
        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,
      );