toMap method
Implementation
@override
Map<String, dynamic> toMap({bool fullEnum = false}) {
Map<String, dynamic> map = Map();
getFieldStructList.forEach((fs) {
if (fullEnum && fs.fieldName == 'operation') {
map[fs.fieldName!] =
OperationTypeAccess.getOperationType(fs.value as int);
} else {
map[fs.fieldName!] = fs.value;
}
});
return map;
}