toMap method
Convert to map.
Implementation
Map<String, dynamic> toMap() => {
'id': id,
'providerName': providerName,
'previousValue': previousValue,
'newValue': newValue,
'timestamp': timestamp.toIso8601String(),
'stateType': stateType.name,
'description': description,
};