toJSON method

  1. @override
dynamic toJSON()
override

Implementation

@override
toJSON() {
  final Map<String, dynamic> json = {};
  json["skip"] = skip;
  json["take"] = take;
  json["orderBy"] = orderBy;
  json["orderType"] = orderType;

  for (final field in fields) {
    json[field.name] = field.toJSON();
  }

  return json;
}