toJson method

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

Converts a ChatMemberLeft to a Map for JSON encoding.

Implementation

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