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
812 B
Dart
31 lines
812 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 = <String, dynamic>{};
|
|
data['id'] = id;
|
|
data['supplierId'] = supplierId;
|
|
data['personName'] = personName;
|
|
data['personRoleId'] = personRoleId;
|
|
data['contact'] = contact;
|
|
data['email'] = email;
|
|
return data;
|
|
}
|
|
}
|