toMap method
Implementation
Map<String, Object?> toMap() {
final conf = <String, Object?>{
'name': name,
'breakId': breakId,
'breakType': breakType?.name,
'podSize': podSize,
};
conf.removeWhere((key, value) => value == null);
return conf;
}