toJson method

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

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