import 'package:json_annotation/json_annotation.dart'; import 'label_bean.dart'; part 'recommend_bean.g.dart'; ///标签 @JsonSerializable(explicitToJson: true) class RecommendBean { int? id; String? bgImage; String? name; String? biography; int? gender; List? label; String? imageUrl; String? actionType; String? actionId; RecommendBean(this.id, this.bgImage, this.name, this.biography, this.gender, this.label, this.imageUrl, this.actionType, this.actionId); factory RecommendBean.fromJson(Map json) => _$RecommendBeanFromJson(json); Map toJson() => _$RecommendBeanToJson(this); }