toJson method

  1. @override
Map<String, dynamic> toJson()
override

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);
}