/* Options: Date: 2025-12-06 05:27:31 Version: 8.70 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.sbbet.ath.cx //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetUserNotifications.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class RecordDictionary extends Map implements IConvertible { RecordDictionary(); RecordDictionary.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); getTypeName() => "RecordDictionary<$TKey,$TVal>"; TypeContext? context = _ctx; } class Severity { static const Severity Success = const Severity._(0); static const Severity Info = const Severity._(1); static const Severity Warning = const Severity._(2); static const Severity Error = const Severity._(3); final int _value; const Severity._(this._value); int get value => _value; static List get values => const [Success,Info,Warning,Error]; } class NotificationType { static const NotificationType Default = const NotificationType._(0); static const NotificationType SlipDeliveryConfirmationRequest = const NotificationType._(1); static const NotificationType SlipDeliveryIssueResolved = const NotificationType._(2); final int _value; const NotificationType._(this._value); int get value => _value; static List get values => const [Default,SlipDeliveryConfirmationRequest,SlipDeliveryIssueResolved]; } class Notification implements IConvertible { Severity? severity; NotificationType? type; RecordDictionary? data; Notification({this.severity,this.type,this.data}); Notification.fromJson(Map json) { fromMap(json); } fromMap(Map json) { severity = JsonConverters.fromJson(json['severity'],'Severity',context!); type = JsonConverters.fromJson(json['type'],'NotificationType',context!); data = JsonConverters.fromJson(json['data'],'RecordDictionary',context!); return this; } Map toJson() => { 'severity': JsonConverters.toJson(severity,'Severity',context!), 'type': JsonConverters.toJson(type,'NotificationType',context!), 'data': JsonConverters.toJson(data,'RecordDictionary',context!) }; getTypeName() => "Notification"; TypeContext? context = _ctx; } class UserNotification implements IConvertible { String? id; Notification? notification; DateTime? dispatchedAt; UserNotification({this.id,this.notification,this.dispatchedAt}); UserNotification.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; notification = JsonConverters.fromJson(json['notification'],'Notification',context!); dispatchedAt = JsonConverters.fromJson(json['dispatchedAt'],'DateTime',context!); return this; } Map toJson() => { 'id': id, 'notification': JsonConverters.toJson(notification,'Notification',context!), 'dispatchedAt': JsonConverters.toJson(dispatchedAt,'DateTime',context!) }; getTypeName() => "UserNotification"; TypeContext? context = _ctx; } class UserNotifications implements IConvertible { String? id; int? n; int? s; int? i; int? w; int? e; Map? notifications; UserNotifications({this.id,this.n,this.s,this.i,this.w,this.e,this.notifications}); UserNotifications.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; n = json['n']; s = json['s']; i = json['i']; w = json['w']; e = json['e']; notifications = JsonConverters.fromJson(json['notifications'],'Map',context!); return this; } Map toJson() => { 'id': id, 'n': n, 's': s, 'i': i, 'w': w, 'e': e, 'notifications': JsonConverters.toJson(notifications,'Map',context!) }; getTypeName() => "UserNotifications"; TypeContext? context = _ctx; } // @Route("/qry/users/notifications") class GetUserNotifications implements IReturn, IConvertible, IPost { String? id; GetUserNotifications({this.id}); GetUserNotifications.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; return this; } Map toJson() => { 'id': id }; createResponse() => UserNotifications(); getResponseTypeName() => "UserNotifications"; getTypeName() => "GetUserNotifications"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.sbbet.ath.cx', types: { 'RecordDictionary': TypeInfo(TypeOf.GenericDef,create:() => RecordDictionary()), 'Severity': TypeInfo(TypeOf.Enum, enumValues:Severity.values), 'NotificationType': TypeInfo(TypeOf.Enum, enumValues:NotificationType.values), 'Notification': TypeInfo(TypeOf.Class, create:() => Notification()), 'RecordDictionary': TypeInfo(TypeOf.Class, create:() => RecordDictionary()), 'UserNotification': TypeInfo(TypeOf.Class, create:() => UserNotification()), 'UserNotifications': TypeInfo(TypeOf.Class, create:() => UserNotifications()), 'Map': TypeInfo(TypeOf.Class, create:() => Map()), 'GetUserNotifications': TypeInfo(TypeOf.Class, create:() => GetUserNotifications()), });