You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.1 KiB
50 lines
1.1 KiB
/// enabled : true |
|
/// code : "1111" |
|
/// showImage : "https://pos.upload.gznl.top/0000/2022/03/4ca95160-aa19-46e5-ad07-8a16ca11c697.jpg" |
|
/// jumpType : 1 |
|
/// jumpUrl : "1417675188681572352" |
|
|
|
class ActivityPos { |
|
ActivityPos({ |
|
bool enabled, |
|
String code, |
|
String showImage, |
|
int jumpType, |
|
String jumpUrl,}){ |
|
_enabled = enabled; |
|
_code = code; |
|
_showImage = showImage; |
|
_jumpType = jumpType; |
|
_jumpUrl = jumpUrl; |
|
} |
|
|
|
ActivityPos.fromJson(dynamic json) { |
|
_enabled = json['enabled']; |
|
_code = json['code']; |
|
_showImage = json['showImage']; |
|
_jumpType = json['jumpType']; |
|
_jumpUrl = json['jumpUrl']; |
|
} |
|
bool _enabled; |
|
String _code; |
|
String _showImage; |
|
int _jumpType; |
|
String _jumpUrl; |
|
|
|
bool get enabled => _enabled; |
|
String get code => _code; |
|
String get showImage => _showImage; |
|
int get jumpType => _jumpType; |
|
String get jumpUrl => _jumpUrl; |
|
|
|
Map<String, dynamic> toJson() { |
|
final map = <String, dynamic>{}; |
|
map['enabled'] = _enabled; |
|
map['code'] = _code; |
|
map['showImage'] = _showImage; |
|
map['jumpType'] = _jumpType; |
|
map['jumpUrl'] = _jumpUrl; |
|
return map; |
|
} |
|
|
|
} |