LabeledPricePart.fromJson constructor

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

Parses a LabeledPricePart from TDLib JSON.

Implementation

factory LabeledPricePart.fromJson(Map<String, dynamic> json) =>
    LabeledPricePart(
      label: _readString(json['label']),
      amount: _readInt(json['amount']),
    );