notice_board_announ_entity.dart 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import 'package:domain/generated/json/base/json_field.dart';
  2. import 'package:domain/generated/json/notice_board_announ_entity.g.dart';
  3. import 'dart:convert';
  4. export 'package:domain/generated/json/notice_board_announ_entity.g.dart';
  5. @JsonSerializable()
  6. class NoticeBoardAnnounEntity {
  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<NoticeBoardAnnounList> list = [];
  13. NoticeBoardAnnounEntity();
  14. factory NoticeBoardAnnounEntity.fromJson(Map<String, dynamic> json) => $NoticeBoardAnnounEntityFromJson(json);
  15. Map<String, dynamic> toJson() => $NoticeBoardAnnounEntityToJson(this);
  16. @override
  17. String toString() {
  18. return jsonEncode(this);
  19. }
  20. }
  21. @JsonSerializable()
  22. class NoticeBoardAnnounList {
  23. late int id = 0;
  24. late String title = '';
  25. @JSONField(name: "created_at")
  26. late String createdAt = '';
  27. NoticeBoardAnnounList();
  28. factory NoticeBoardAnnounList.fromJson(Map<String, dynamic> json) => $NoticeBoardAnnounListFromJson(json);
  29. Map<String, dynamic> toJson() => $NoticeBoardAnnounListToJson(this);
  30. @override
  31. String toString() {
  32. return jsonEncode(this);
  33. }
  34. }