toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'host': host.toJson(),
    'speakers': speakers.map((adminPeer) => adminPeer.toJson()).toList(),
    'listeners':
        listeners.map((listenerPeer) => listenerPeer.toJson()).toList(),
  };
}