toMap method
Implementation
Map<String, dynamic> toMap() {
Map<String, dynamic> result = {};
result['component'] = component;
if (foundation != null) {
result['foundation'] = foundation;
}
result['priority'] = priority;
result['ip'] = ip;
if (protocol != null) {
result['protocol'] = protocol?.value;
}
result['port'] = port;
result['type'] = type.value;
if (tcpType != null) {
result['tcptype'] = tcpType?.value;
}
result['transport'] = transport;
return result;
}