You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hmg-mohemm-flutter-app/lib/models/mowadhafhi/get_department_sections.dart

45 lines
1.3 KiB
Dart

class GetDepartmentSections {
int? departmentId;
String? departmentName;
int? departmentSectionId;
String? projectCode;
int? projectId;
String? projectName;
int? sectionId;
String? sectionName;
GetDepartmentSections(
{this.departmentId,
this.departmentName,
this.departmentSectionId,
this.projectCode,
this.projectId,
this.projectName,
this.sectionId,
this.sectionName});
GetDepartmentSections.fromJson(Map<String, dynamic> json) {
departmentId = json['departmentId'];
departmentName = json['departmentName'];
departmentSectionId = json['departmentSectionId'];
projectCode = json['projectCode'];
projectId = json['projectId'];
projectName = json['projectName'];
sectionId = json['sectionId'];
sectionName = json['sectionName'];
}
Map<String, dynamic> toJson() {
Map<String, dynamic> data = new Map<String, dynamic>();
data['departmentId'] = this.departmentId;
data['departmentName'] = this.departmentName;
data['departmentSectionId'] = this.departmentSectionId;
data['projectCode'] = this.projectCode;
data['projectId'] = this.projectId;
data['projectName'] = this.projectName;
data['sectionId'] = this.sectionId;
data['sectionName'] = this.sectionName;
return data;
}
}