toJson method
Converts a LabeledPrice object to a JSON object
Implementation
Map<String, dynamic> toJson() {
return {
'label': label,
'amount': amount,
};
}
Converts a LabeledPrice object to a JSON object
Map<String, dynamic> toJson() {
return {
'label': label,
'amount': amount,
};
}