toJson method

Map<String, dynamic> toJson()

Implementation

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