toMap method
Implementation
@override
Map toMap(record) {
record as Record;
return {
'key': _getKeyAndType(record.key)[1],
'type': _getKeyAndType(record.key)[0],
'label': record.label,
'value': record.value,
'ttl': record.ttl,
'action': _getAction(record.recordState)
};
}