notice_board_event_detail_entity.dart 820 B

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