toJSON method

  1. @override
dynamic toJSON()
override

Implementation

@override
toJSON() {
  final Map<String, dynamic> json = {};
  json["skip"] = skip;
  json["take"] = take;
  if (orderBy != null) {
    json["orderBy"] = orderBy;
  }
  if (orderType != null) {
    json["orderType"] = orderType;
  }
  if (search != null) {
    json["search"] = search;
  }
  if (viewCode != null) {
    json["viewCode"] = viewCode;
  }
  for (final field in fields) {
    json[field.name] = field.toJSON();
  }
  return json;
}