toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'name': name,
    'type': type,
    'amount': amount,
    'category': category,
    'quantity': quantity,
    'description': description,
    'subcategory': subcategory,
    'reference_id': referenceId,
  };
}