/// icon : "http://"
|
/// name : "名称"
|
/// process : "进度"
|
/// price : "单价"
|
/// actionName : "按钮名称"
|
/// active : true
|
/// jumpType : "baichuan"
|
|
class TaskListModel {
|
TaskListModel({
|
String? icon,
|
String? name,
|
String? process,
|
int? price,
|
String? priceUnit,
|
String? actionName,
|
bool? active,
|
String? jumpType,
|
}) {
|
_icon = icon;
|
_name = name;
|
_process = process;
|
_price = price;
|
_priceUnit=priceUnit;
|
_actionName = actionName;
|
_active = active;
|
_jumpType = jumpType;
|
}
|
|
TaskListModel.fromJson(dynamic json) {
|
_icon = json['icon'];
|
_name = json['name'];
|
_process = json['process'];
|
_price = json['price'];
|
_priceUnit=json['priceUnit'];
|
_actionName = json['actionName'];
|
_active = json['active'];
|
_jumpType = json['jumpType'];
|
}
|
|
String? _icon;
|
String? _name;
|
String? _process;
|
int? _price;
|
String? _priceUnit;
|
String? _actionName;
|
bool? _active;
|
String? _jumpType;
|
|
String? get icon => _icon;
|
|
String? get name => _name;
|
|
String? get process => _process;
|
|
int? get price => _price;
|
|
String? get priceUnit => _priceUnit;
|
|
String? get actionName => _actionName;
|
|
bool? get active => _active;
|
|
String? get jumpType => _jumpType;
|
|
Map<String, dynamic> toJson() {
|
final map = <String, dynamic>{};
|
map['icon'] = _icon;
|
map['name'] = _name;
|
map['process'] = _process;
|
map['price'] = _price;
|
map['priceUnit'] = _priceUnit;
|
map['actionName'] = _actionName;
|
map['active'] = _active;
|
map['jumpType'] = _jumpType;
|
return map;
|
}
|
}
|