notice_board_documents_entity.dart 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import 'package:domain/generated/json/base/json_field.dart';
  2. import 'package:domain/generated/json/notice_board_documents_entity.g.dart';
  3. import 'dart:convert';
  4. export 'package:domain/generated/json/notice_board_documents_entity.g.dart';
  5. @JsonSerializable()
  6. class NoticeBoardDocumentsEntity {
  7. late int count = 0;
  8. late int page = 0;
  9. late int limit = 0;
  10. @JSONField(name: "count_page")
  11. late int countPage = 0;
  12. late List<NoticeBoardDocumentsList> list = [];
  13. NoticeBoardDocumentsEntity();
  14. factory NoticeBoardDocumentsEntity.fromJson(Map<String, dynamic> json) => $NoticeBoardDocumentsEntityFromJson(json);
  15. Map<String, dynamic> toJson() => $NoticeBoardDocumentsEntityToJson(this);
  16. @override
  17. String toString() {
  18. return jsonEncode(this);
  19. }
  20. }
  21. @JsonSerializable()
  22. class NoticeBoardDocumentsList {
  23. late int id = 0;
  24. @JSONField(name: "parent_id")
  25. late int parentId = 0;
  26. late String name = '';
  27. late String url = '';
  28. NoticeBoardDocumentsList();
  29. factory NoticeBoardDocumentsList.fromJson(Map<String, dynamic> json) => $NoticeBoardDocumentsListFromJson(json);
  30. Map<String, dynamic> toJson() => $NoticeBoardDocumentsListToJson(this);
  31. @override
  32. String toString() {
  33. return jsonEncode(this);
  34. }
  35. }