toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'customer_name'] = this.customerName;
    json[r'subject_name'] = this.subjectName;
    json[r'level_name'] = this.levelName;
  if (this.id != null) {
    json[r'id'] = this.id;
  } else {
    json[r'id'] = null;
  }
    json[r'trait_names'] = this.traitNames;
  if (this.postcode != null) {
    json[r'postcode'] = this.postcode;
  } else {
    json[r'postcode'] = null;
  }
  return json;
}