toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.penaltyAmount != null) {
    json[r'penaltyAmount'] = this.penaltyAmount;
  } else {
    json[r'penaltyAmount'] = null;
  }
  if (this.cancellationFee != null) {
    json[r'cancellationFee'] = this.cancellationFee;
  } else {
    json[r'cancellationFee'] = null;
  }
  if (this.refundAmount != null) {
    json[r'refundAmount'] = this.refundAmount;
  } else {
    json[r'refundAmount'] = null;
  }
  if (this.isComplete != null) {
    json[r'isComplete'] = this.isComplete;
  } else {
    json[r'isComplete'] = null;
  }
  return json;
}