forked from yaso_meth/mih-project
create business object
This commit is contained in:
32
Frontend/patient_manager/lib/objects/business.dart
Normal file
32
Frontend/patient_manager/lib/objects/business.dart
Normal file
@@ -0,0 +1,32 @@
|
||||
// ignore: file_names
|
||||
class Business {
|
||||
final String business_id;
|
||||
final String Name;
|
||||
final String type;
|
||||
final String registration_no;
|
||||
final String logo_name;
|
||||
final String logo_path;
|
||||
final String app_id;
|
||||
|
||||
const Business(
|
||||
this.business_id,
|
||||
this.Name,
|
||||
this.type,
|
||||
this.registration_no,
|
||||
this.logo_name,
|
||||
this.logo_path,
|
||||
this.app_id,
|
||||
);
|
||||
|
||||
factory Business.fromJson(dynamic json) {
|
||||
return Business(
|
||||
json['business_id'],
|
||||
json['Name'],
|
||||
json['type'],
|
||||
json['registration_no'],
|
||||
json['logo_name'],
|
||||
json['logo_path'],
|
||||
json['app_id'],
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user