toMap method
Implementation
@override
Map<String, Object?> toMap() {
final data = <String, Object?>{
'category': category,
'variable': variable,
'timing': timing,
'label': label,
};
data.removeWhere((key, value) => value == null);
return data;
}