Sticker.fromMap constructor

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

Implementation

Sticker.fromMap(Map<String, dynamic> map) {
  extra = map['@extra'];
  client_id = map['@client_id'];
  set_id = map['set_id'];
  width = map['width'];
  height = map['height'];
  emoji = map['emoji'];
  if (map['format'] != null) {
    format = TdApiMap.fromMap(map['format']) as StickerFormat;
  }
  if (map['full_type'] != null) {
    full_type = TdApiMap.fromMap(map['full_type']) as StickerFullType;
  }
  if (map['outline'] != null) {
    outline = [];
    for (var someValue in map['outline']) {
      if (someValue != null) {
        outline?.add(TdApiMap.fromMap(someValue) as ClosedVectorPath);
      }
    }
  }
  if (map['thumbnail'] != null) {
    thumbnail = TdApiMap.fromMap(map['thumbnail']) as Thumbnail;
  }
  if (map['sticker'] != null) {
    sticker = TdApiMap.fromMap(map['sticker']) as File;
  }
}