toJson method

Map<String, dynamic> toJson()

Converts this object to a JSON map.

Returns a map with from and paid_media_payload fields.

Implementation

Map<String, dynamic> toJson() {
  return {
    'from': from.toJson(),
    'paid_media_payload': paidMediaPayload,
  };
}