import 'package:domain/generated/json/base/json_field.dart'; import 'package:domain/generated/json/fiance_report_entity.g.dart'; import 'dart:convert'; export 'package:domain/generated/json/fiance_report_entity.g.dart'; @JsonSerializable() class FianceReportEntity { @JSONField(name: "rate_list") List rateList = []; @JSONField(name: "request_total") int requestTotal = 0; @JSONField(name: "actual_total") int actualTotal = 0; FianceReportEntity(); factory FianceReportEntity.fromJson(Map json) => $FianceReportEntityFromJson(json); Map toJson() => $FianceReportEntityToJson(this); @override String toString() { return jsonEncode(this); } } @JsonSerializable() class FianceReportRateList { String? day = null; @JSONField(name: "week_num") String? weekNum = null; @JSONField(name: "week_str") String? weekStr = null; int request = 0; int actual = 0; String? ratio = null; FianceReportRateList(); factory FianceReportRateList.fromJson(Map json) => $FianceReportRateListFromJson(json); Map toJson() => $FianceReportRateListToJson(this); @override String toString() { return jsonEncode(this); } }