toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var baseLevelId = this.baseLevelId;
  var levels = this.levels;

  final json = <String, Object?>{};
  if (baseLevelId != null) {
    json[r'baseLevelId'] = baseLevelId;
  }
  json[r'levels'] = levels.map((i) => i.toJson()).toList();
  return json;
}