import 'package:huixiang/generated/json/base/json_field.dart'; import 'package:huixiang/generated/json/brand.g.dart'; import 'dart:convert'; export 'package:huixiang/generated/json/brand.g.dart'; @JsonSerializable() class Brand { String? name = ''; String? image = ''; String? video = ''; String? desc = ''; String? content = ''; String? icon = ''; int? sort = 0; String? storeId = ''; Brand(); factory Brand.fromJson(Map json) => $BrandFromJson(json); Map toJson() => $BrandToJson(this); @override String toString() { return jsonEncode(this); } }