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.
31 lines
843 B
Dart
31 lines
843 B
Dart
class SupplierEngineer {
|
|
int id;
|
|
int supplierId;
|
|
String personName;
|
|
int personRoleId;
|
|
String contact;
|
|
String email;
|
|
|
|
SupplierEngineer({this.id, this.supplierId, this.personName, this.personRoleId, this.contact, this.email});
|
|
|
|
SupplierEngineer.fromJson(Map<String, dynamic> json) {
|
|
id = json['id'];
|
|
supplierId = json['supplierId'];
|
|
personName = json['personName'];
|
|
personRoleId = json['personRoleId'];
|
|
contact = json['contact'];
|
|
email = json['email'];
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
data['id'] = this.id;
|
|
data['supplierId'] = this.supplierId;
|
|
data['personName'] = this.personName;
|
|
data['personRoleId'] = this.personRoleId;
|
|
data['contact'] = this.contact;
|
|
data['email'] = this.email;
|
|
return data;
|
|
}
|
|
}
|