DiceStickersSlotMachine.fromJson constructor

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

Parses a DiceStickersSlotMachine from TDLib JSON.

Implementation

factory DiceStickersSlotMachine.fromJson(Map<String, dynamic> json) =>
    DiceStickersSlotMachine(
      background: _readObject(json['background'], Sticker.fromJson),
      lever: _readObject(json['lever'], Sticker.fromJson),
      leftReel: _readObject(json['left_reel'], Sticker.fromJson),
      centerReel: _readObject(json['center_reel'], Sticker.fromJson),
      rightReel: _readObject(json['right_reel'], Sticker.fromJson),
    );