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 (formId != null) data["formId"] = formId;
  if (numbers != null) data["numbers"] = numbers;
  if (ids != null) data["ids"] = ids;
  if (userId != null) data["userId"] = userId;
  if (userName != null) data["userName"] = userName;
  if (actionResultId != null) data["actionResultId"] = actionResultId;
  if (postId != null) data["postId"] = postId;
  if (postNumber != null) data["postNumber"] = postNumber;
  return data;
}