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.createdBy != null) {
    json[r'created_by'] = this.createdBy;
  } else {
    json[r'created_by'] = null;
  }
    json[r'client_name'] = this.clientName;
    json[r'client_email'] = this.clientEmail;
    json[r'client_phone_number'] = this.clientPhoneNumber;
  if (this.postcode != null) {
    json[r'postcode'] = this.postcode;
  } else {
    json[r'postcode'] = null;
  }
    json[r'full_address'] = this.fullAddress;
  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.description != null) {
    json[r'description'] = this.description;
  } else {
    json[r'description'] = null;
  }
    json[r'student_availability'] = this.studentAvailability;
    json[r'student_personality'] = this.studentPersonality;
  if (this.priceMin != null) {
    json[r'price_min'] = this.priceMin;
  } else {
    json[r'price_min'] = null;
  }
  if (this.priceMax != null) {
    json[r'price_max'] = this.priceMax;
  } else {
    json[r'price_max'] = null;
  }
    json[r'tags'] = this.tags;
  return json;
}