toJson method

  1. @override
Map<String, dynamic> toJson()
override

Convert the parameter model to a json map.

Implementation

@override
Map<String, dynamic> toJson() {
  Map<String, dynamic> data = {};
  if (numbers != null) data["numbers"] = numbers;
  if (ids != null) data["ids"] = ids;
  if (entryIds != null) data["entryIds"] = entryIds;
  if (ruleId != null) data["ruleId"] = ruleId;
  if (targetBillTypeId != null) data["targetBillTypeId"] = targetBillTypeId;
  if (targetOrgId != null) data["targetOrgId"] = targetOrgId;
  if (targetFormId != null) data["targetFormId"] = targetFormId;
  if (isEnableDefaultRule != null) data["isEnableDefaultRule"] = isEnableDefaultRule;
  if (isDraftWhenSaveFail != null) data["isDraftWhenSaveFail"] = isDraftWhenSaveFail;
  if (customParams != null) data["customParams"] = customParams;

  Map<String, dynamic> json = {};
  if (formId != null) json["formId"] = formId;
  json["data"] = data;
  return json;
}