toJson method
Converts a ChatMemberMember to a Map for JSON encoding.
Implementation
@override
Map<String, dynamic> toJson() {
return {
'status': status.value,
'user': user.toJson(),
'until_date': untilDate,
}..removeWhere(_nullFilter);
}