toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.id != null) {
    json[r'id'] = this.id;
  } else {
    json[r'id'] = null;
  }
  if (this.customer != null) {
    json[r'customer'] = this.customer;
  } else {
    json[r'customer'] = null;
  }
  if (this.tutor != null) {
    json[r'tutor'] = this.tutor;
  } else {
    json[r'tutor'] = null;
  }
  if (this.tutorFeedback != null) {
    json[r'tutor_feedback'] = this.tutorFeedback;
  } else {
    json[r'tutor_feedback'] = null;
  }
  if (this.customerFeedback != null) {
    json[r'customer_feedback'] = this.customerFeedback;
  } else {
    json[r'customer_feedback'] = null;
  }
  if (this.chat != null) {
    json[r'chat'] = this.chat;
  } else {
    json[r'chat'] = null;
  }
  if (this.cancellationPeriodHours != null) {
    json[r'cancellation_period_hours'] = this.cancellationPeriodHours;
  } else {
    json[r'cancellation_period_hours'] = null;
  }
  if (this.canCancelCustomer != null) {
    json[r'can_cancel_customer'] = this.canCancelCustomer;
  } else {
    json[r'can_cancel_customer'] = null;
  }
  if (this.hasCancellationPenalty != null) {
    json[r'has_cancellation_penalty'] = this.hasCancellationPenalty;
  } else {
    json[r'has_cancellation_penalty'] = null;
  }
  if (this.paymentHoldsAt != null) {
    json[r'payment_holds_at'] = this.paymentHoldsAt!.toUtc().toIso8601String();
  } else {
    json[r'payment_holds_at'] = null;
  }
  if (this.paymentAmountInCents != null) {
    json[r'payment_amount_in_cents'] = this.paymentAmountInCents;
  } else {
    json[r'payment_amount_in_cents'] = null;
  }
  if (this.feedbackId != null) {
    json[r'feedback_id'] = this.feedbackId;
  } else {
    json[r'feedback_id'] = null;
  }
    json[r'subject'] = this.subject;
  if (this.created != null) {
    json[r'created'] = this.created!.toUtc().toIso8601String();
  } else {
    json[r'created'] = null;
  }
  if (this.modified != null) {
    json[r'modified'] = this.modified!.toUtc().toIso8601String();
  } else {
    json[r'modified'] = null;
  }
  if (this.deletedAt != null) {
    json[r'deleted_at'] = this.deletedAt!.toUtc().toIso8601String();
  } else {
    json[r'deleted_at'] = null;
  }
  if (this.isTutorPaid != null) {
    json[r'is_tutor_paid'] = this.isTutorPaid;
  } else {
    json[r'is_tutor_paid'] = null;
  }
  if (this.isAcceptedByCustomer != null) {
    json[r'is_accepted_by_customer'] = this.isAcceptedByCustomer;
  } else {
    json[r'is_accepted_by_customer'] = null;
  }
  if (this.isAcceptedByTutor != null) {
    json[r'is_accepted_by_tutor'] = this.isAcceptedByTutor;
  } else {
    json[r'is_accepted_by_tutor'] = null;
  }
  if (this.isRejectedByCustomer != null) {
    json[r'is_rejected_by_customer'] = this.isRejectedByCustomer;
  } else {
    json[r'is_rejected_by_customer'] = null;
  }
  if (this.isRejectedByTutor != null) {
    json[r'is_rejected_by_tutor'] = this.isRejectedByTutor;
  } else {
    json[r'is_rejected_by_tutor'] = null;
  }
  if (this.location != null) {
    json[r'location'] = this.location;
  } else {
    json[r'location'] = null;
  }
  if (this.acceptanceChangedAt != null) {
    json[r'acceptance_changed_at'] = this.acceptanceChangedAt!.toUtc().toIso8601String();
  } else {
    json[r'acceptance_changed_at'] = null;
  }
  if (this.cancelledAt != null) {
    json[r'cancelled_at'] = this.cancelledAt!.toUtc().toIso8601String();
  } else {
    json[r'cancelled_at'] = null;
  }
  if (this.cancelledByCustomer != null) {
    json[r'cancelled_by_customer'] = this.cancelledByCustomer;
  } else {
    json[r'cancelled_by_customer'] = null;
  }
  if (this.confirmedAt != null) {
    json[r'confirmed_at'] = this.confirmedAt!.toUtc().toIso8601String();
  } else {
    json[r'confirmed_at'] = null;
  }
  if (this.confirmedStatus != null) {
    json[r'confirmed_status'] = this.confirmedStatus;
  } else {
    json[r'confirmed_status'] = null;
  }
  if (this.customerFeedbackStatus != null) {
    json[r'customer_feedback_status'] = this.customerFeedbackStatus;
  } else {
    json[r'customer_feedback_status'] = null;
  }
  if (this.customerFeedbackNotes != null) {
    json[r'customer_feedback_notes'] = this.customerFeedbackNotes;
  } else {
    json[r'customer_feedback_notes'] = null;
  }
  if (this.customerFeedbackCreatedAt != null) {
    json[r'customer_feedback_created_at'] = this.customerFeedbackCreatedAt!.toUtc().toIso8601String();
  } else {
    json[r'customer_feedback_created_at'] = null;
  }
  if (this.customerFeedbackRating != null) {
    json[r'customer_feedback_rating'] = this.customerFeedbackRating;
  } else {
    json[r'customer_feedback_rating'] = null;
  }
  if (this.customerFeedbackExcellent != null) {
    json[r'customer_feedback_excellent'] = this.customerFeedbackExcellent;
  } else {
    json[r'customer_feedback_excellent'] = null;
  }
  if (this.tutorFeedbackNotes != null) {
    json[r'tutor_feedback_notes'] = this.tutorFeedbackNotes;
  } else {
    json[r'tutor_feedback_notes'] = null;
  }
  if (this.tutorFeedbackCreatedAt != null) {
    json[r'tutor_feedback_created_at'] = this.tutorFeedbackCreatedAt!.toUtc().toIso8601String();
  } else {
    json[r'tutor_feedback_created_at'] = null;
  }
  if (this.tutorFeedbackRating != null) {
    json[r'tutor_feedback_rating'] = this.tutorFeedbackRating;
  } else {
    json[r'tutor_feedback_rating'] = null;
  }
  if (this.showCustomerFeedbackOnSite != null) {
    json[r'show_customer_feedback_on_site'] = this.showCustomerFeedbackOnSite;
  } else {
    json[r'show_customer_feedback_on_site'] = null;
  }
    json[r'start_time'] = this.startTime.toUtc().toIso8601String();
    json[r'end_time'] = this.endTime.toUtc().toIso8601String();
  if (this.customerToken != null) {
    json[r'customer_token'] = this.customerToken;
  } else {
    json[r'customer_token'] = null;
  }
  if (this.tutorToken != null) {
    json[r'tutor_token'] = this.tutorToken;
  } else {
    json[r'tutor_token'] = null;
  }
  if (this.feedbackRequired != null) {
    json[r'feedback_required'] = this.feedbackRequired;
  } else {
    json[r'feedback_required'] = null;
  }
  if (this.isTrialCall != null) {
    json[r'is_trial_call'] = this.isTrialCall;
  } else {
    json[r'is_trial_call'] = null;
  }
  if (this.finishedNotificationsSent != null) {
    json[r'finished_notifications_sent'] = this.finishedNotificationsSent;
  } else {
    json[r'finished_notifications_sent'] = null;
  }
  if (this.reconfirmingNotificationsSent != null) {
    json[r'reconfirming_notifications_sent'] = this.reconfirmingNotificationsSent;
  } else {
    json[r'reconfirming_notifications_sent'] = null;
  }
  if (this.cancelReason != null) {
    json[r'cancel_reason'] = this.cancelReason;
  } else {
    json[r'cancel_reason'] = null;
  }
  if (this.isCustomerRead != null) {
    json[r'is_customer_read'] = this.isCustomerRead;
  } else {
    json[r'is_customer_read'] = null;
  }
  if (this.isTutorRead != null) {
    json[r'is_tutor_read'] = this.isTutorRead;
  } else {
    json[r'is_tutor_read'] = null;
  }
  if (this.rescheduleCountByCustomer != null) {
    json[r'reschedule_count_by_customer'] = this.rescheduleCountByCustomer;
  } else {
    json[r'reschedule_count_by_customer'] = null;
  }
  if (this.rescheduleCountByTutor != null) {
    json[r'reschedule_count_by_tutor'] = this.rescheduleCountByTutor;
  } else {
    json[r'reschedule_count_by_tutor'] = null;
  }
  if (this.invitation != null) {
    json[r'invitation'] = this.invitation;
  } else {
    json[r'invitation'] = null;
  }
  if (this.cancelledBy != null) {
    json[r'cancelled_by'] = this.cancelledBy;
  } else {
    json[r'cancelled_by'] = null;
  }
  if (this.zoomMeeting != null) {
    json[r'zoom_meeting'] = this.zoomMeeting;
  } else {
    json[r'zoom_meeting'] = null;
  }
  return json;
}