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