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 (createOrgId != null) data["createOrgId"] = createOrgId;
  if (number != null) data["number"] = number;
  if (id != null) data["id"] = id;

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