/* Options: Date: 2025-06-13 07:18:06 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: GetAlertsByUserRQ.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class SystemAlert implements IConvertible { int? GenerationType; String? GenerationTypeDesc; int? AlertOrigin; String? AlertOriginDesc; String? Message; double? Longitude; double? Latitude; String? ModifiedUser; DateTime? ModifiedDate; String? ModifiedDateDesc; String? Notes; String? Fullinfo; int? Status; String? StatusDesc; SystemAlert({this.GenerationType,this.GenerationTypeDesc,this.AlertOrigin,this.AlertOriginDesc,this.Message,this.Longitude,this.Latitude,this.ModifiedUser,this.ModifiedDate,this.ModifiedDateDesc,this.Notes,this.Fullinfo,this.Status,this.StatusDesc}); SystemAlert.fromJson(Map json) { fromMap(json); } fromMap(Map json) { GenerationType = json['GenerationType']; GenerationTypeDesc = json['GenerationTypeDesc']; AlertOrigin = json['AlertOrigin']; AlertOriginDesc = json['AlertOriginDesc']; Message = json['Message']; Longitude = JsonConverters.toDouble(json['Longitude']); Latitude = JsonConverters.toDouble(json['Latitude']); ModifiedUser = json['ModifiedUser']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); ModifiedDateDesc = json['ModifiedDateDesc']; Notes = json['Notes']; Fullinfo = json['Fullinfo']; Status = json['Status']; StatusDesc = json['StatusDesc']; return this; } Map toJson() => { 'GenerationType': GenerationType, 'GenerationTypeDesc': GenerationTypeDesc, 'AlertOrigin': AlertOrigin, 'AlertOriginDesc': AlertOriginDesc, 'Message': Message, 'Longitude': Longitude, 'Latitude': Latitude, 'ModifiedUser': ModifiedUser, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!), 'ModifiedDateDesc': ModifiedDateDesc, 'Notes': Notes, 'Fullinfo': Fullinfo, 'Status': Status, 'StatusDesc': StatusDesc }; getTypeName() => "SystemAlert"; TypeContext? context = _ctx; } 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 GetAlertsByUserRS extends CoreRS implements IConvertible { List? Data; GetAlertsByUserRS({this.Data}); GetAlertsByUserRS.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() => "GetAlertsByUserRS"; TypeContext? context = _ctx; } // @Route("/alerts/getbyuser") class GetAlertsByUserRQ implements IReturn, IConvertible { String? User; int? Status; GetAlertsByUserRQ({this.User,this.Status}); GetAlertsByUserRQ.fromJson(Map json) { fromMap(json); } fromMap(Map json) { User = json['User']; Status = json['Status']; return this; } Map toJson() => { 'User': User, 'Status': Status }; createResponse() => GetAlertsByUserRS(); getResponseTypeName() => "GetAlertsByUserRS"; getTypeName() => "GetAlertsByUserRQ"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'ws.jimsnwa.com', types: { 'SystemAlert': TypeInfo(TypeOf.Class, create:() => SystemAlert()), 'CoreRS': TypeInfo(TypeOf.Class, create:() => CoreRS()), 'GetAlertsByUserRS': TypeInfo(TypeOf.Class, create:() => GetAlertsByUserRS()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetAlertsByUserRQ': TypeInfo(TypeOf.Class, create:() => GetAlertsByUserRQ()), });