toMap method

  1. @override
Map<String, dynamic> toMap({
  1. bool fullEnum = false,
})
override

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;
}