toJson method Null safety

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'custom_type': customTypes,
    'show_member': includeMemberList,
    'show_empty': includeEmptyChannel,
    'show_frozen': includeFrozenChannel,
  };
}