You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
602 B
27 lines
602 B
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<String, dynamic> json) => $BrandFromJson(json); |
|
|
|
Map<String, dynamic> toJson() => $BrandToJson(this); |
|
|
|
@override |
|
String toString() { |
|
return jsonEncode(this); |
|
} |
|
} |