toMap method Null safety
- @override
model -> map
Implementation
@override
Map<String, Object?> toMap() {
return {
'duration': this.duration,
'type': this.type?.index,
};
}
model -> map
@override
Map<String, Object?> toMap() {
return {
'duration': this.duration,
'type': this.type?.index,
};
}