/* Options: Date: 2025-06-13 07:48:31 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: SaveCitizenReportRQ.* //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; } // @Route("/citizen/saveReport") class SaveCitizenReportRQ implements IReturn, IConvertible { String? Email; int? ReportTypeId; String? ReportDescription; double? Longitude; double? Latitude; int? InvolvedInIndicent; int? IsAnonymous; Map? DynamicFields; SaveCitizenReportRQ({this.Email,this.ReportTypeId,this.ReportDescription,this.Longitude,this.Latitude,this.InvolvedInIndicent,this.IsAnonymous,this.DynamicFields}); SaveCitizenReportRQ.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Email = json['Email']; ReportTypeId = json['ReportTypeId']; ReportDescription = json['ReportDescription']; Longitude = JsonConverters.toDouble(json['Longitude']); Latitude = JsonConverters.toDouble(json['Latitude']); InvolvedInIndicent = json['InvolvedInIndicent']; IsAnonymous = json['IsAnonymous']; DynamicFields = JsonConverters.toStringMap(json['DynamicFields']); return this; } Map toJson() => { 'Email': Email, 'ReportTypeId': ReportTypeId, 'ReportDescription': ReportDescription, 'Longitude': Longitude, 'Latitude': Latitude, 'InvolvedInIndicent': InvolvedInIndicent, 'IsAnonymous': IsAnonymous, 'DynamicFields': DynamicFields }; createResponse() => CoreRS(); getResponseTypeName() => "CoreRS"; getTypeName() => "SaveCitizenReportRQ"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'ws.jimsnwa.com', types: { 'CoreRS': TypeInfo(TypeOf.Class, create:() => CoreRS()), 'SaveCitizenReportRQ': TypeInfo(TypeOf.Class, create:() => SaveCitizenReportRQ()), });