VideoAttachment.fromJson constructor

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

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?,
  );
}