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.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.icon != null) {
    json[r'icon'] = this.icon;
  } else {
    json[r'icon'] = null;
  }
  if (this.location != null) {
    json[r'location'] = this.location;
  } else {
    json[r'location'] = null;
  }
    json[r'applications'] = this.applications;
  return json;
}