toJson method
Implementation
@override
Map<String, Object?> toJson() {
final limit = this.limit;
final notSenders = this.notSenders;
final notTypes = this.notTypes;
final senders = this.senders;
final types = this.types;
final containsUrl = this.containsUrl;
final includeRedundantMembers = this.includeRedundantMembers;
final lazyLoadMembers = this.lazyLoadMembers;
final notRooms = this.notRooms;
final rooms = this.rooms;
final unreadThreadNotifications = this.unreadThreadNotifications;
return {
if (limit != null) 'limit': limit,
if (notSenders != null) 'not_senders': notSenders.map((v) => v).toList(),
if (notTypes != null) 'not_types': notTypes.map((v) => v).toList(),
if (senders != null) 'senders': senders.map((v) => v).toList(),
if (types != null) 'types': types.map((v) => v).toList(),
if (containsUrl != null) 'contains_url': containsUrl,
if (includeRedundantMembers != null)
'include_redundant_members': includeRedundantMembers,
if (lazyLoadMembers != null) 'lazy_load_members': lazyLoadMembers,
if (notRooms != null) 'not_rooms': notRooms.map((v) => v).toList(),
if (rooms != null) 'rooms': rooms.map((v) => v).toList(),
if (unreadThreadNotifications != null)
'unread_thread_notifications': unreadThreadNotifications,
};
}