fromJson static method

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

Creates a object from a json

Implementation

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