fromJson static method

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

Implementation

static DiceStickersSlotMachine? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return DiceStickersSlotMachine(
    background: Sticker.fromJson(tdMapFromJson(json['background'])),
    lever: Sticker.fromJson(tdMapFromJson(json['lever'])),
    leftReel: Sticker.fromJson(tdMapFromJson(json['left_reel'])),
    centerReel: Sticker.fromJson(tdMapFromJson(json['center_reel'])),
    rightReel: Sticker.fromJson(tdMapFromJson(json['right_reel'])),
  );
}