toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    'ordered': ordered,
    if (maxRetransmitTime > 0)
      //https://www.chromestatus.com/features/5198350873788416
      'maxPacketLifeTime': maxRetransmitTime,
    if (maxRetransmits > 0) 'maxRetransmits': maxRetransmits,
    'protocol': protocol,
    'negotiated': negotiated,
    if (id != 0) 'id': id
  };
}