/* Options: Date: 2025-06-13 07:11:14 Version: 6.40 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://ws.jimsnwa.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetReportTypesRQ.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class CoreRS implements IConvertible { String? Code; String? ErrorMessage; String? ErrorStackTrace; CoreRS({this.Code,this.ErrorMessage,this.ErrorStackTrace}); CoreRS.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Code = json['Code']; ErrorMessage = json['ErrorMessage']; ErrorStackTrace = json['ErrorStackTrace']; return this; } Map toJson() => { 'Code': Code, 'ErrorMessage': ErrorMessage, 'ErrorStackTrace': ErrorStackTrace }; getTypeName() => "CoreRS"; TypeContext? context = _ctx; } class ListDictionaryRS extends CoreRS implements IConvertible { List>? Data; ListDictionaryRS({this.Data}); ListDictionaryRS.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Data = JsonConverters.fromJson(json['Data'],'List>',context!); return this; } Map toJson() => super.toJson()..addAll({ 'Data': JsonConverters.toJson(Data,'List>',context!) }); getTypeName() => "ListDictionaryRS"; TypeContext? context = _ctx; } // @Route("/citizen/getreporttypes") class GetReportTypesRQ implements IReturn, IConvertible { int? CategoryId; GetReportTypesRQ({this.CategoryId}); GetReportTypesRQ.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CategoryId = json['CategoryId']; return this; } Map toJson() => { 'CategoryId': CategoryId }; createResponse() => ListDictionaryRS(); getResponseTypeName() => "ListDictionaryRS"; getTypeName() => "GetReportTypesRQ"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'ws.jimsnwa.com', types: { 'CoreRS': TypeInfo(TypeOf.Class, create:() => CoreRS()), 'ListDictionaryRS': TypeInfo(TypeOf.Class, create:() => ListDictionaryRS()), 'List>': TypeInfo(TypeOf.Class, create:() => >[]), 'Map': TypeInfo(TypeOf.Class, create:() => Map()), 'GetReportTypesRQ': TypeInfo(TypeOf.Class, create:() => GetReportTypesRQ()), });