DiceStickers.fromJson constructor

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

a DiceStickers return type can be :

Implementation

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