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 (endTime != null) {
    _json["endTime"] = endTime;
  }
  if (field != null) {
    _json["field"] = field;
  }
  if (indexConfigDeltas != null) {
    _json["indexConfigDeltas"] =
        indexConfigDeltas.map((value) => (value).toJson()).toList();
  }
  if (progressBytes != null) {
    _json["progressBytes"] = (progressBytes).toJson();
  }
  if (progressDocuments != null) {
    _json["progressDocuments"] = (progressDocuments).toJson();
  }
  if (startTime != null) {
    _json["startTime"] = startTime;
  }
  if (state != null) {
    _json["state"] = state;
  }
  return _json;
}