SearchVariantsResponse.fromJson constructor

SearchVariantsResponse.fromJson(Map _json)

Implementation

SearchVariantsResponse.fromJson(core.Map _json) {
  if (_json.containsKey("nextPageToken")) {
    nextPageToken = _json["nextPageToken"];
  }
  if (_json.containsKey("variants")) {
    variants = (_json["variants"] as core.List)
        .map<Variant>((value) => new Variant.fromJson(value))
        .toList();
  }
}