import 'package:domain/generated/json/base/json_field.dart'; import 'package:domain/generated/json/notice_board_documents_entity.g.dart'; import 'dart:convert'; export 'package:domain/generated/json/notice_board_documents_entity.g.dart'; @JsonSerializable() class NoticeBoardDocumentsEntity { late int count = 0; late int page = 0; late int limit = 0; @JSONField(name: "count_page") late int countPage = 0; late List list = []; NoticeBoardDocumentsEntity(); factory NoticeBoardDocumentsEntity.fromJson(Map json) => $NoticeBoardDocumentsEntityFromJson(json); Map toJson() => $NoticeBoardDocumentsEntityToJson(this); @override String toString() { return jsonEncode(this); } } @JsonSerializable() class NoticeBoardDocumentsList { late int id = 0; @JSONField(name: "parent_id") late int parentId = 0; late String name = ''; late String url = ''; NoticeBoardDocumentsList(); factory NoticeBoardDocumentsList.fromJson(Map json) => $NoticeBoardDocumentsListFromJson(json); Map toJson() => $NoticeBoardDocumentsListToJson(this); @override String toString() { return jsonEncode(this); } }