create business object

This commit is contained in:
2024-08-07 13:22:15 +02:00
parent add980414f
commit bcbcc0982d

View 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'],
);
}
}