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.
33 lines
936 B
Dart
33 lines
936 B
Dart
class Clinic {
|
|
int clinicGroupID;
|
|
String clinicGroupName;
|
|
int clinicID;
|
|
String clinicNameArabic;
|
|
String clinicNameEnglish;
|
|
|
|
Clinic(
|
|
{this.clinicGroupID,
|
|
this.clinicGroupName,
|
|
this.clinicID,
|
|
this.clinicNameArabic,
|
|
this.clinicNameEnglish});
|
|
|
|
Clinic.fromJson(Map<String, dynamic> json) {
|
|
clinicGroupID = json['clinicGroupID'];
|
|
clinicGroupName = json['clinicGroupName'];
|
|
clinicID = json['clinicID'];
|
|
clinicNameArabic = json['clinicNameArabic'];
|
|
clinicNameEnglish = json['clinicNameEnglish'];
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
data['clinicGroupID'] = this.clinicGroupID;
|
|
data['clinicGroupName'] = this.clinicGroupName;
|
|
data['clinicID'] = this.clinicID;
|
|
data['clinicNameArabic'] = this.clinicNameArabic;
|
|
data['clinicNameEnglish'] = this.clinicNameEnglish;
|
|
return data;
|
|
}
|
|
|
|
} |