Invoice.fromJson constructor
Converts a JSON object to an Invoice object
Implementation
factory Invoice.fromJson(Map<String, dynamic> json) {
return Invoice(
title: json['title']!,
description: json['description']!,
startParameter: json['start_parameter']!,
currency: json['currency']!,
totalAmount: json['total_amount']!,
);
}