toMap method

Map<String, dynamic> toMap()

Serializes the item for the INITIATE request.

Implementation

Map<String, dynamic> toMap() => {
  'name': name,
  'quantity': quantity,
  'unitPrice': unitPrice,
};