toMap method
Implementation
Map<String, dynamic> toMap() {
return {
'id': id,
'type': type,
'name': name,
'data': data,
'priority': priority,
'port': port,
'ttl': ttl,
'weight': weight,
'flags': flags,
'tag': tag,
};
}