toJson method

Map<String, dynamic> toJson()

Converts a LabeledPrice object to a JSON object

Implementation

Map<String, dynamic> toJson() {
  return {
    'label': label,
    'amount': amount,
  };
}