NEW: MIH Profile Links pt1
This commit is contained in:
parent
b945a34ad4
commit
eea3248525
10 changed files with 1645 additions and 658 deletions
35
Frontend/lib/mih_objects/profile_link.dart
Normal file
35
Frontend/lib/mih_objects/profile_link.dart
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
class ProfileLink {
|
||||
final int idprofile_links;
|
||||
final String app_id;
|
||||
final String business_id;
|
||||
final String destination;
|
||||
final String web_link;
|
||||
|
||||
const ProfileLink({
|
||||
required this.idprofile_links,
|
||||
required this.app_id,
|
||||
required this.business_id,
|
||||
required this.destination,
|
||||
required this.web_link,
|
||||
});
|
||||
|
||||
factory ProfileLink.fromJson(Map<String, dynamic> json) {
|
||||
return ProfileLink(
|
||||
idprofile_links: json['idprofile_links'],
|
||||
app_id: json['app_id'],
|
||||
business_id: json['business_id'],
|
||||
destination: json['destination'],
|
||||
web_link: json['web_link'],
|
||||
);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
return {
|
||||
'idprofile_links': idprofile_links,
|
||||
'app_id': app_id,
|
||||
'business_id': business_id,
|
||||
'destination': destination,
|
||||
'web_link': web_link,
|
||||
};
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue