notice_board_announ_detail_entity.dart 842 B

123456789101112131415161718192021222324252627
  1. import 'package:domain/generated/json/base/json_field.dart';
  2. import 'package:domain/generated/json/notice_board_announ_detail_entity.g.dart';
  3. import 'dart:convert';
  4. export 'package:domain/generated/json/notice_board_announ_detail_entity.g.dart';
  5. @JsonSerializable()
  6. class NoticeBoardAnnounDetailEntity {
  7. late int id = 0;
  8. late String title = '';
  9. late String content = '';
  10. late List<dynamic> resources = [];
  11. @JSONField(name: "created_at")
  12. late String createdAt = '';
  13. NoticeBoardAnnounDetailEntity();
  14. factory NoticeBoardAnnounDetailEntity.fromJson(Map<String, dynamic> json) => $NoticeBoardAnnounDetailEntityFromJson(json);
  15. Map<String, dynamic> toJson() => $NoticeBoardAnnounDetailEntityToJson(this);
  16. @override
  17. String toString() {
  18. return jsonEncode(this);
  19. }
  20. map(Function(dynamic item) param0) {}
  21. }