for_ta_bean.dart 373 B

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