toMap method

Map<String, dynamic> toMap()

Converts to a map value

Implementation

Map<String, dynamic> toMap() {
  return <String, dynamic>{
    'TaxInclusiveAmt': taxInclusiveAmount,
    'DiscountAmt': discountAmount,
    'ItemRef': itemRef?.toMap(),
    'ClassRef': classRef?.toMap(),
    'TaxCodeRef': taxCodeRef?.toMap(),
    'MarkupInfo': markupInfo?.toMap(),
    'ItemAccountRef': itemAccountRef?.toMap(),
    'ServiceDate': serviceDate?.toString(),
    'DiscountRate': discountRate,
    'Qty': qty,
    'UnitPrice': unitPrice,
    'TaxClassificationRef': taxClassificationRef?.toMap(),
  };
}