toJson method

Map<String, dynamic> toJson()

Converts a ChatMember to a Map for JSON encoding.

Implementation

Map<String, dynamic> toJson() {
  return {
    'status': status.value,
    'user': user.toJson(),
  }..removeWhere(_nullFilter);
}