toJson method

  1. @override
Map<String, dynamic> toJson()
override

Converts a PaidMediaPhoto object to JSON.

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    'type': type.value,
    'photo': photo.map((item) => item.toJson()).toList(),
  };
}