PaidMediaPurchased.fromJson constructor
Creates a PaidMediaPurchased object from a JSON map.
The JSON map should contain from
and paid_media_payload
fields.
Implementation
factory PaidMediaPurchased.fromJson(Map<String, dynamic> json) {
return PaidMediaPurchased(
from: User.fromJson(json['from']),
paidMediaPayload: json['paid_media_payload'],
);
}