导航栏代码,配置文件

This commit is contained in:
2025-11-03 14:19:21 +08:00
parent ac8a6387ef
commit 32fa975fb2
30 changed files with 2014 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
class BaseModel {
bool? success;
String? type;
String? url;
BaseModel({this.success, this.type, this.url});
factory BaseModel.fromJson(Map<String, dynamic> json) => BaseModel(
success: json['success']?.toString().contains("true"),
type: json['type']?.toString(),
url: json['url']?.toString(),
);
Map<String, dynamic> toJson() => {
if (success != null) 'success': success,
if (type != null) 'type': type,
if (url != null) 'url': url,
};
}