toJson method
Implementation
Map<String, Object?> toJson() {
final accountData = this.accountData;
final eventFields = this.eventFields;
final eventFormat = this.eventFormat;
final presence = this.presence;
final room = this.room;
return {
if (accountData != null) 'account_data': accountData.toJson(),
if (eventFields != null)
'event_fields': eventFields.map((v) => v).toList(),
if (eventFormat != null) 'event_format': eventFormat.name,
if (presence != null) 'presence': presence.toJson(),
if (room != null) 'room': room.toJson(),
};
}