InputMessageInvoice.fromJson constructor

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

Parse from a json

Implementation

factory InputMessageInvoice.fromJson(Map<String, dynamic> json) => InputMessageInvoice(
  invoice: Invoice.fromJson(json['invoice']),
  title: json['title'],
  description: json['description'],
  photoUrl: json['photo_url'],
  photoSize: json['photo_size'],
  photoWidth: json['photo_width'],
  photoHeight: json['photo_height'],
  payload: json['payload'],
  providerToken: json['provider_token'],
  providerData: json['provider_data'],
  startParameter: json['start_parameter'],
);