toJson method
Converts a ChatMemberOwner to a Map for JSON encoding.
Implementation
@override
Map<String, dynamic> toJson() {
return {
'status': status.value,
'user': user.toJson(),
'is_anonymous': isAnonymous,
'custom_title': customTitle,
}..removeWhere(_nullFilter);
}