import 'package:domain/generated/json/base/json_field.dart'; import 'package:domain/generated/json/notification_page_entity.g.dart'; import 'dart:convert'; export 'package:domain/generated/json/notification_page_entity.g.dart'; @JsonSerializable() class NotificationPageEntity { int count = 0; int page = 0; int limit = 0; @JSONField(name: "count_page") int countPage = 0; List? list = []; NotificationPageEntity(); factory NotificationPageEntity.fromJson(Map json) => $NotificationPageEntityFromJson(json); Map toJson() => $NotificationPageEntityToJson(this); @override String toString() { return jsonEncode(this); } } @JsonSerializable() class NotificationPageList { String? id; @JSONField(name: "estate_id") String? estateId; String? type; String? title; String? body; NotificationPageListData? data; bool read = false; @JSONField(name: "created_at") String? createdAt; NotificationPageList(); factory NotificationPageList.fromJson(Map json) => $NotificationPageListFromJson(json); Map toJson() => $NotificationPageListToJson(this); @override String toString() { return jsonEncode(this); } } @JsonSerializable() class NotificationPageListData { String? id; @JSONField(name: "estate_online_form_id") String? estateOnlineFormId; @JSONField(name: "online_form_type_id") String? onlineFormTypeId; String? type; NotificationPageListData(); factory NotificationPageListData.fromJson(Map json) => $NotificationPageListDataFromJson(json); Map toJson() => $NotificationPageListDataToJson(this); @override String toString() { return jsonEncode(this); } }