fromMap static method

DiceStickers? fromMap(
  1. Map<String, dynamic>? _map
)
override

Construct from Map.

Implementation

static DiceStickers? fromMap(Map<String, dynamic>? _map) {
  if (_map == null) return null;
  var _ = _map["@type"];
  switch (_) {
    case 'diceStickersRegular':
      return DiceStickersRegular.fromMap(_map);
    case 'diceStickersSlotMachine':
      return DiceStickersSlotMachine.fromMap(_map);
    case null:
    default:
      return null;
  }
}