toJson method

Map<String, dynamic> toJson()

Converts an Invoice object to a JSON object

Implementation

Map<String, dynamic> toJson() {
  return {
    'title': title,
    'description': description,
    'start_parameter': startParameter,
    'currency': currency,
    'total_amount': totalAmount,
  }..removeWhere(_nullFilter);
}