VideoAttachment.fromJson constructor
Implementation
factory VideoAttachment.fromJson(Map<String, dynamic> json) {
return VideoAttachment(
payload: MediaPayload.fromJson(json['payload'] as Map<String, dynamic>),
thumbnail: json['thumbnail'] as String?,
width: json['width'] as int?,
height: json['height'] as int?,
duration: json['duration'] as int?,
);
}