toMap method

  1. @override
Map<String, dynamic> toMap()
override

Implementation

@override
Map<String, dynamic> toMap() {
  return {
    'calibreId': calibreId,
    'id': id,
    'kind': kind.toString(),
    'designation': designation,
    'unitsInOnePiece': unitsInOnePiece,
    'price': price,
    'cost': cost,
  };
}