toJson method
Implementation
Map<String, bool> toJson() {
final hasEmpty = contains(ChannelQueryIncludeOption.emptyChannel);
final hasMember = contains(ChannelQueryIncludeOption.memberList);
final hasFrozen = contains(ChannelQueryIncludeOption.frozenChannel);
final hasRead = contains(ChannelQueryIncludeOption.readReceipt);
final hasDelivery = contains(ChannelQueryIncludeOption.deliveryReceipt);
final hasMeta = contains(ChannelQueryIncludeOption.metaData);
return {
if (hasEmpty) 'show_empty': true,
if (hasMember) 'show_member': true,
if (hasFrozen) 'show_frozen': true,
if (hasRead) 'show_read_receipt': true,
if (hasDelivery) 'show_delivery_receipt': true,
if (hasMeta) 'show_metadata': true,
};
}