form_submitted_entity.dart 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. import 'package:domain/entity/form_content_entity.dart';
  2. import 'package:domain/entity/id_name_entity.dart';
  3. import 'package:domain/generated/json/base/json_field.dart';
  4. import 'package:domain/generated/json/form_submitted_entity.g.dart';
  5. import 'dart:convert';
  6. export 'package:domain/generated/json/form_submitted_entity.g.dart';
  7. @JsonSerializable()
  8. class FormSubmittedEntity {
  9. String? id;
  10. @JSONField(name: "user_id")
  11. String? userId;
  12. @JSONField(name: "estate_online_form_id")
  13. String? estateOnlineFormId;
  14. FormContentEntity? content;
  15. @JSONField(name: "sent_on")
  16. String? sentOn;
  17. @JSONField(name: "rejected_on")
  18. String? rejectedOn;
  19. @JSONField(name: "approved_on")
  20. String? approvedOn;
  21. @JSONField(name: "estate_online_form")
  22. FormSubmittedEstateOnlineForm? estateOnlineForm;
  23. IdNameEntity? account;
  24. FormSubmittedEntity();
  25. factory FormSubmittedEntity.fromJson(Map<String, dynamic> json) => $FormSubmittedEntityFromJson(json);
  26. Map<String, dynamic> toJson() => $FormSubmittedEntityToJson(this);
  27. @override
  28. String toString() {
  29. return jsonEncode(this);
  30. }
  31. }
  32. @JsonSerializable()
  33. class FormSubmittedEstateOnlineForm {
  34. String? id;
  35. String? icon;
  36. String? name;
  37. IdNameEntity? type;
  38. FormSubmittedEstateOnlineForm();
  39. factory FormSubmittedEstateOnlineForm.fromJson(Map<String, dynamic> json) => $FormSubmittedEstateOnlineFormFromJson(json);
  40. Map<String, dynamic> toJson() => $FormSubmittedEstateOnlineFormToJson(this);
  41. @override
  42. String toString() {
  43. return jsonEncode(this);
  44. }
  45. }