toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.status != null) {
    json[r'status'] = this.status;
  } else {
    json[r'status'] = null;
  }
  if (this.jobType != null) {
    json[r'job_type'] = this.jobType;
  } else {
    json[r'job_type'] = null;
  }
  if (this.subject != null) {
    json[r'subject'] = this.subject;
  } else {
    json[r'subject'] = null;
  }
  if (this.level != null) {
    json[r'level'] = this.level;
  } else {
    json[r'level'] = null;
  }
  if (this.startDate != null) {
    json[r'start_date'] = this.startDate!.toUtc().toIso8601String();
  } else {
    json[r'start_date'] = null;
  }
  if (this.experience != null) {
    json[r'experience'] = this.experience;
  } else {
    json[r'experience'] = null;
  }
  if (this.duration != null) {
    json[r'duration'] = this.duration;
  } else {
    json[r'duration'] = null;
  }
  if (this.id != null) {
    json[r'id'] = this.id;
  } else {
    json[r'id'] = null;
  }
  if (this.icon != null) {
    json[r'icon'] = this.icon;
  } else {
    json[r'icon'] = null;
  }
  if (this.description != null) {
    json[r'description'] = this.description;
  } else {
    json[r'description'] = null;
  }
  if (this.appliedAt != null) {
    json[r'applied_at'] = this.appliedAt;
  } else {
    json[r'applied_at'] = null;
  }
  if (this.location != null) {
    json[r'location'] = this.location;
  } else {
    json[r'location'] = null;
  }
  if (this.isOpen != null) {
    json[r'is_open'] = this.isOpen;
  } else {
    json[r'is_open'] = null;
  }
  if (this.slug != null) {
    json[r'slug'] = this.slug;
  } else {
    json[r'slug'] = null;
  }
  if (this.subjectLevelSlug != null) {
    json[r'subject_level_slug'] = this.subjectLevelSlug;
  } else {
    json[r'subject_level_slug'] = null;
  }
    json[r'applications'] = this.applications;
  if (this.subjectId != null) {
    json[r'subject_id'] = this.subjectId;
  } else {
    json[r'subject_id'] = null;
  }
  if (this.levelId != null) {
    json[r'level_id'] = this.levelId;
  } else {
    json[r'level_id'] = null;
  }
  if (this.postcode != null) {
    json[r'postcode'] = this.postcode;
  } else {
    json[r'postcode'] = null;
  }
  return json;
}