toJson method

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

Implementation

@override
Map<String, dynamic> toJson() {
  var json = _$PaginateToJson(this);
  if (before == CursorType.EMPTY) {
    json.remove('before');
  }
  if (after == CursorType.EMPTY) {
    json.remove('after');
  }
  return json;
}