toJson method
Implementation
Map<String, Object?> toJson() {
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 (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,
};
}