toJson method

Map toJson()

Creates a json from the object

Implementation

Map toJson() {
  return {
    'id': id,
    'from': from,
    'invoice_payload': invoicePayload,
    'shipping_address': shippingAddress,
  }..removeWhere((_, v) => v == null);
}