PaidMedia class abstract

This object describes paid media. Currently, it can be one of PaidMediaPreview, PaidMediaPhoto, PaidMediaVideo.

Implementers

Constructors

PaidMedia()
Creates a new PaidMedia object from JSON.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type PaidMediaType
Type of the paid media.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts a PaidMedia to a Map for JSON encoding.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromJson(Map<String, dynamic> json) PaidMedia
Creates a new PaidMedia object. This method decides which PaidMedia subclass to use based on the type field.