Map<String, dynamic> toMap() => <String, dynamic>{ if (cursor != null) "cursor": cursor, "limit": limit, };