toJson method

Map<String, Object> toJson ()

Implementation

core.Map<core.String, core.Object> toJson() {
  final core.Map<core.String, core.Object> _json =
      new core.Map<core.String, core.Object>();
  if (nextPageToken != null) {
    _json["nextPageToken"] = nextPageToken;
  }
  if (variants != null) {
    _json["variants"] = variants.map((value) => (value).toJson()).toList();
  }
  return _json;
}