1ec1d4209a
Deploy / build-linux-web (push) Successful in 59s
Deploy / build-windows (push) Successful in 1m50s
Deploy / build-macos (push) Successful in 1m22s
Deploy / build-android (push) Successful in 1m26s
Deploy / build-ios (push) Successful in 7s
Deploy / release-deploy (push) Successful in 1m39s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
33 lines
899 B
Dart
33 lines
899 B
Dart
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<String, dynamic> 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? ?? '',
|
|
);
|
|
}
|