class ShopInfo { final int id; final String code; final String name; final String address; final String phone; final String managerName; const ShopInfo({ required this.id, required this.code, required this.name, required this.address, required this.phone, required this.managerName, }); 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? ?? '', ); }