InputSticker.fromJson constructor

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

a InputSticker return type can be :

Implementation

factory InputSticker.fromJson(Map<String, dynamic> json)  {
  switch(json["@type"]) {
    case InputStickerStatic.CONSTRUCTOR:
      return InputStickerStatic.fromJson(json);
    case InputStickerAnimated.CONSTRUCTOR:
      return InputStickerAnimated.fromJson(json);
    default:
      return const InputSticker();
  }
}