toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.commissionCents != null) {
json[r'commissionCents'] = this.commissionCents;
} else {
json[r'commissionCents'] = null;
}
if (this.marginCents != null) {
json[r'marginCents'] = this.marginCents;
} else {
json[r'marginCents'] = null;
}
if (this.period != null) {
json[r'period'] = this.period;
} else {
json[r'period'] = null;
}
return json;
}