/// extConfig.items 单项,来自 common_info surge 解析,见 docs/extConfig.md class ExtConfigItem { const ExtConfigItem({ required this.image, required this.cost, required this.title, required this.detail, }); final String image; final int cost; final String title; final String detail; factory ExtConfigItem.fromJson(Map json) { return ExtConfigItem( image: json['image'] as String? ?? '', cost: (json['cost'] is int) ? json['cost'] as int : (json['cost'] is num) ? (json['cost'] as num).toInt() : 0, title: json['title'] as String? ?? '', detail: json['detail'] as String? ?? '', ); } }