toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = Map<String, dynamic>();
data['min_level'] = this.minLevel;
data['max_level'] = this.maxLevel;
if (this.conditionValues != null) {
data['condition_values'] =
this.conditionValues!.map((v) => v.toJson()).toList();
}
data['chance'] = this.chance;
if (this.method != null) {
data['method'] = this.method!.toJson();
}
return data;
}