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;
  }
    json[r'tutors'] = this.tutors;
  if (this.subjectlevel != null) {
    json[r'subjectlevel'] = this.subjectlevel;
  } else {
    json[r'subjectlevel'] = null;
  }
    json[r'postcode'] = this.postcode;
  if (this.messageToTutor != null) {
    json[r'message_to_tutor'] = this.messageToTutor;
  } else {
    json[r'message_to_tutor'] = null;
  }
  if (this.jobPost != null) {
    json[r'job_post'] = this.jobPost;
  } else {
    json[r'job_post'] = null;
  }
  return json;
}