PaidMediaPreview.fromJson constructor

PaidMediaPreview.fromJson(
  1. Map<String, dynamic> json
)

Creates a PaidMediaPreview object from JSON.

Implementation

factory PaidMediaPreview.fromJson(Map<String, dynamic> json) {
  return PaidMediaPreview(
    width: json['width'],
    height: json['height'],
    duration: json['duration'],
  );
}