toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.payment != null) {
    json[r'payment'] = this.payment;
  } else {
    json[r'payment'] = null;
  }
  if (this.cancellation != null) {
    json[r'cancellation'] = this.cancellation;
  } else {
    json[r'cancellation'] = null;
  }
  if (this.changes != null) {
    json[r'changes'] = this.changes;
  } else {
    json[r'changes'] = null;
  }
  return json;
}