toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final levelFive = this.levelFive;
  final levelFour = this.levelFour;
  final levelOne = this.levelOne;
  final levelThree = this.levelThree;
  final levelTwo = this.levelTwo;
  return {
    if (levelFive != null) 'LevelFive': levelFive,
    if (levelFour != null) 'LevelFour': levelFour,
    if (levelOne != null) 'LevelOne': levelOne,
    if (levelThree != null) 'LevelThree': levelThree,
    if (levelTwo != null) 'LevelTwo': levelTwo,
  };
}