StickerFullType.fromJson constructor

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

Implementation

factory StickerFullType.fromJson(Map<String, dynamic> json) {
  switch (json["@type"]) {
    case StickerFullTypeRegular.CONSTRUCTOR:
      return StickerFullTypeRegular.fromJson(json);
    case StickerFullTypeMask.CONSTRUCTOR:
      return StickerFullTypeMask.fromJson(json);
    case StickerFullTypeCustomEmoji.CONSTRUCTOR:
      return StickerFullTypeCustomEmoji.fromJson(json);
    default:
      return const StickerFullType();
  }
}