toMap method
Implementation
Map<String, dynamic> toMap() {
return {
'streamId': streamId,
'ordered': ordered,
'maxPacketLifeTime': maxPacketLifeTime,
'maxRetransmits': maxRetransmits,
'priority': priority?.value,
'label': label,
'protocol': protocol,
};
}