73 lines
1.9 KiB
Dart
73 lines
1.9 KiB
Dart
class MenuIconModel {
|
|
String? iconUid;
|
|
String? name;
|
|
String? link;
|
|
String? description;
|
|
String? fileUrl;
|
|
String? fileName;
|
|
bool? isUse;
|
|
int? statusId;
|
|
var createdBy;
|
|
var createdDatetime;
|
|
var updatedBy;
|
|
var updatedDatetime;
|
|
var search;
|
|
var ownerAgencyUid;
|
|
int? localID = -1;
|
|
String? token;
|
|
|
|
MenuIconModel(
|
|
{this.iconUid,
|
|
this.name,
|
|
this.link,
|
|
this.description,
|
|
this.fileUrl,
|
|
this.fileName,
|
|
this.isUse,
|
|
this.statusId,
|
|
this.createdBy,
|
|
this.createdDatetime,
|
|
this.updatedBy,
|
|
this.updatedDatetime,
|
|
this.search,
|
|
this.ownerAgencyUid,
|
|
this.token,
|
|
this.localID});
|
|
|
|
MenuIconModel.fromJson(Map<String, dynamic> json) {
|
|
iconUid = json['icon_uid'];
|
|
name = json['name'];
|
|
link = json['link'];
|
|
description = json['description'];
|
|
fileUrl = json['file_url'];
|
|
fileName = json['file_name'];
|
|
isUse = json['is_use'];
|
|
statusId = json['status_id'];
|
|
createdBy = json['created_by'];
|
|
createdDatetime = json['created_datetime'];
|
|
updatedBy = json['updated_by'];
|
|
updatedDatetime = json['updated_datetime'];
|
|
search = json['search'];
|
|
ownerAgencyUid = json['owner_agency_uid'];
|
|
token = json['secret_token'];
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
data['icon_uid'] = this.iconUid;
|
|
data['name'] = this.name;
|
|
data['link'] = this.link;
|
|
data['description'] = this.description;
|
|
data['file_url'] = this.fileUrl;
|
|
data['file_name'] = this.fileName;
|
|
data['is_use'] = this.isUse;
|
|
data['status_id'] = this.statusId;
|
|
data['created_by'] = this.createdBy;
|
|
data['created_datetime'] = this.createdDatetime;
|
|
data['updated_by'] = this.updatedBy;
|
|
data['updated_datetime'] = this.updatedDatetime;
|
|
data['search'] = this.search;
|
|
data['owner_agency_uid'] = this.ownerAgencyUid;
|
|
return data;
|
|
}
|
|
} |