toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json[r'code'] = this.code;
  json[r'level'] = this.level;
  json[r'type'] = this.type;
  json[r'min_quantity'] = this.minQuantity;
  json[r'max_quantity'] = this.maxQuantity;
  if (this.skill != null) {
    json[r'skill'] = this.skill;
  } else {
    json[r'skill'] = null;
  }
  json[r'rewards'] = this.rewards;
  return json;
}