@@ -9,17 +9,15 @@ abstract class ReportTemplatePage with _$ReportTemplatePage {
99 required String title,
1010
1111 /// Is the page source
12- @JsonKey (unknownEnumValue: ReportTemplateSource .messages) required ReportTemplateSource source,
12+ @JsonKey (unknownEnumValue: ReportSource .messages) required ReportSource source,
1313
1414 /// Is the algorithm used to generate the page data.
15- @JsonKey (unknownEnumValue: ReportTemplateAlgorithm .auto)
16- @Default (ReportTemplateAlgorithm .auto)
17- ReportTemplateAlgorithm algorithm,
15+ @JsonKey (unknownEnumValue: ReportAlgorithm .auto) @Default (ReportAlgorithm .auto) ReportAlgorithm algorithm,
1816
19- /// Is the page data, aka, the cols. Only used when [algorithm] is [ReportTemplateAlgorithm .auto]
17+ /// Is the page data, aka, the cols. Only used when [algorithm] is [ReportAlgorithm .auto]
2018 List <ReportTemplateCol >? cols,
2119
22- /// Is the script in Python to generate the page data. Only used when [algorithm] is [ReportTemplateAlgorithm .python]
20+ /// Is the script in Python to generate the page data. Only used when [algorithm] is [ReportAlgorithm .python]
2321 String ? script,
2422 }) = _ReportTemplatePage ;
2523
@@ -31,12 +29,8 @@ abstract class ReportTemplatePageInput with _$ReportTemplatePageInput {
3129 const ReportTemplatePageInput ._();
3230 factory ReportTemplatePageInput ({
3331 @Default ('Page' ) String title,
34- @JsonKey (unknownEnumValue: ReportTemplateSource .messages)
35- @Default (ReportTemplateSource .messages)
36- ReportTemplateSource source,
37- @JsonKey (unknownEnumValue: ReportTemplateAlgorithm .auto)
38- @Default (ReportTemplateAlgorithm .auto)
39- ReportTemplateAlgorithm algorithm,
32+ @JsonKey (unknownEnumValue: ReportSource .messages) @Default (ReportSource .messages) ReportSource source,
33+ @JsonKey (unknownEnumValue: ReportAlgorithm .auto) @Default (ReportAlgorithm .auto) ReportAlgorithm algorithm,
4034 @Default ([]) List <ReportTemplateColInput > cols,
4135 @Default ('' ) String script,
4236 }) = _ReportTemplatePageInput ;
0 commit comments