PageBlockVideo.fromMap constructor

PageBlockVideo.fromMap(
  1. Map<String, dynamic> map
)

Implementation

PageBlockVideo.fromMap(Map<String, dynamic> map) {
  extra = map['@extra'];
  client_id = map['@client_id'];
  if (map['video'] != null) {
    video = TdApiMap.fromMap(map['video']) as Video;
  }
  if (map['caption'] != null) {
    caption = TdApiMap.fromMap(map['caption']) as PageBlockCaption;
  }
  need_autoplay = map['need_autoplay'];
  is_looped = map['is_looped'];
}