for_me_bean.dart 373 B

123456789101112131415161718
  1. import 'package:json_annotation/json_annotation.dart';
  2. part 'for_me_bean.g.dart';
  3. /// 对于他
  4. @JsonSerializable()
  5. class ForMeBean {
  6. /// 标题
  7. @JsonKey(name: "title")
  8. String title;
  9. ForMeBean(this.title);
  10. factory ForMeBean.fromJson(Map<String, dynamic> json) =>
  11. _$ForMeBeanFromJson(json);
  12. Map<String, dynamic> toJson() => _$ForMeBeanToJson(this);
  13. }