form_detail_entity.dart 907 B

1234567891011121314151617181920212223242526272829303132
  1. import 'package:domain/entity/form_content_entity.dart';
  2. import 'package:domain/generated/json/base/json_field.dart';
  3. import 'package:domain/generated/json/form_detail_entity.g.dart';
  4. import 'dart:convert';
  5. export 'package:domain/generated/json/form_detail_entity.g.dart';
  6. @JsonSerializable()
  7. class FormDetailEntity {
  8. String? id;
  9. @JSONField(name: "user_id")
  10. String? userId;
  11. FormContentEntity? content; //详情内容
  12. int status = 0; //0-已提交未审核,1-已审核通过,2-审核失败
  13. @JSONField(name: "sent_on")
  14. String? sentOn;
  15. @JSONField(name: "rejected_on")
  16. String? rejectedOn;
  17. @JSONField(name: "approved_on")
  18. String? approvedOn;
  19. FormDetailEntity();
  20. factory FormDetailEntity.fromJson(Map<String, dynamic> json) => $FormDetailEntityFromJson(json);
  21. Map<String, dynamic> toJson() => $FormDetailEntityToJson(this);
  22. @override
  23. String toString() {
  24. return jsonEncode(this);
  25. }
  26. }