Invoice.fromJson constructor

Invoice.fromJson(
  1. Map<String, dynamic> json
)

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']!,
  );
}