toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.type != null) {
json[r'type'] = this.type;
} else {
json[r'type'] = null;
}
if (this.amount != null) {
json[r'amount'] = this.amount;
} else {
json[r'amount'] = null;
}
if (this.percent != null) {
json[r'percent'] = this.percent;
} else {
json[r'percent'] = null;
}
if (this.min != null) {
json[r'min'] = this.min;
} else {
json[r'min'] = null;
}
if (this.max != null) {
json[r'max'] = this.max;
} else {
json[r'max'] = null;
}
return json;
}