toMap method
Implementation
Map<String, dynamic> toMap() {
Map<String, dynamic> filteredMap = {
"enabled": enabled,
"masterChecksum": masterChecksum?.index
};
filteredMap.removeWhere((key, value) => value == null);
return filteredMap;
}