fromJson static method

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

Creates a object from a json

Implementation

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