AndroidVersion.fromJson constructor

AndroidVersion.fromJson(
  1. Map _json
)

Implementation

AndroidVersion.fromJson(core.Map _json)
    : this(
        apiLevel: _json.containsKey('apiLevel')
            ? _json['apiLevel'] as core.int
            : null,
        codeName: _json.containsKey('codeName')
            ? _json['codeName'] as core.String
            : null,
        distribution: _json.containsKey('distribution')
            ? Distribution.fromJson(
                _json['distribution'] as core.Map<core.String, core.dynamic>)
            : null,
        id: _json.containsKey('id') ? _json['id'] as core.String : null,
        releaseDate: _json.containsKey('releaseDate')
            ? Date.fromJson(
                _json['releaseDate'] as core.Map<core.String, core.dynamic>)
            : null,
        tags: _json.containsKey('tags')
            ? (_json['tags'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        versionString: _json.containsKey('versionString')
            ? _json['versionString'] as core.String
            : null,
      );