VariantCall.fromJson constructor

VariantCall.fromJson(Map _json)

Implementation

VariantCall.fromJson(core.Map _json) {
  if (_json.containsKey("callSetId")) {
    callSetId = _json["callSetId"];
  }
  if (_json.containsKey("callSetName")) {
    callSetName = _json["callSetName"];
  }
  if (_json.containsKey("genotype")) {
    genotype = (_json["genotype"] as core.List).cast<core.int>();
  }
  if (_json.containsKey("genotypeLikelihood")) {
    genotypeLikelihood = (_json["genotypeLikelihood"] as core.List)
        .map<core.double>((value) => value.toDouble())
        .toList();
  }
  if (_json.containsKey("info")) {
    info = commons.mapMap<core.List, core.List<core.Object>>(
        _json["info"].cast<core.String, core.List>(),
        (core.List item) => (item as core.List).cast<core.Object>());
  }
  if (_json.containsKey("phaseset")) {
    phaseset = _json["phaseset"];
  }
}