StickerType.fromJson constructor

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

a StickerType return type can be :

Implementation

factory StickerType.fromJson(Map<String, dynamic> json) {
  switch (json["@type"]) {
    case StickerTypeRegular.CONSTRUCTOR:
      return StickerTypeRegular.fromJson(json);
    case StickerTypeMask.CONSTRUCTOR:
      return StickerTypeMask.fromJson(json);
    case StickerTypeCustomEmoji.CONSTRUCTOR:
      return StickerTypeCustomEmoji.fromJson(json);
    default:
      return const StickerType();
  }
}