toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'chatId': chatId,
    'initiator': initiator?.toJson(),
    if (broadcast != null) 'broadcast': broadcast!.toJson(),
  };
}