MetadataItems.fromJson constructor

MetadataItems.fromJson(
  1. Map _json
)

Implementation

MetadataItems.fromJson(core.Map _json) {
  if (_json.containsKey("download_url")) {
    downloadUrl = _json["download_url"];
  }
  if (_json.containsKey("encrypted_key")) {
    encryptedKey = _json["encrypted_key"];
  }
  if (_json.containsKey("language")) {
    language = _json["language"];
  }
  if (_json.containsKey("size")) {
    size = _json["size"];
  }
  if (_json.containsKey("version")) {
    version = _json["version"];
  }
}