LabeledPrice.fromJson constructor

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

Converts a JSON object to a LabeledPrice object

Implementation

factory LabeledPrice.fromJson(Map<String, dynamic> json) {
  return LabeledPrice(
    label: json['label']!,
    amount: json['amount']!,
  );
}