toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.booking != null) {
    json[r'booking'] = this.booking;
  } else {
    json[r'booking'] = null;
  }
  if (this.created != null) {
    json[r'created'] = this.created!.toUtc().toIso8601String();
  } else {
    json[r'created'] = null;
  }
  if (this.engagementRating != null) {
    json[r'engagement_rating'] = this.engagementRating;
  } else {
    json[r'engagement_rating'] = null;
  }
  if (this.homeworkRating != null) {
    json[r'homework_rating'] = this.homeworkRating;
  } else {
    json[r'homework_rating'] = null;
  }
  if (this.effortRating != null) {
    json[r'effort_rating'] = this.effortRating;
  } else {
    json[r'effort_rating'] = null;
  }
  if (this.comment != null) {
    json[r'comment'] = this.comment;
  } else {
    json[r'comment'] = null;
  }
  return json;
}