class ShopInfo { final int id; final String code; final String name; final String address; final String phone; final String managerName; final String logoUrl; final String wechatId; const ShopInfo({ required this.id, required this.code, required this.name, required this.address, required this.phone, required this.managerName, this.logoUrl = '', this.wechatId = '', }); factory ShopInfo.fromJson(Map json) => ShopInfo( id: (json['id'] as num).toInt(), code: json['code'] as String? ?? '', name: json['name'] as String? ?? '', address: json['address'] as String? ?? '', phone: json['phone'] as String? ?? '', managerName: json['manager_name'] as String? ?? '', logoUrl: json['logo_url'] as String? ?? '', wechatId: json['wechat_id'] as String? ?? '', ); }