/* Options: Date: 2025-12-06 08:05:45 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.dev.dynamics.trendsic.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: NotificationsRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class NotificationHeader implements IConvertible { int? NotificationHeaderId; String? Subject; String? Status; bool? NeedsCloseApproval; bool? IsDeleted; int? CreatedBy; DateTime? DateCreated; NotificationHeader({this.NotificationHeaderId,this.Subject,this.Status,this.NeedsCloseApproval,this.IsDeleted,this.CreatedBy,this.DateCreated}); NotificationHeader.fromJson(Map json) { fromMap(json); } fromMap(Map json) { NotificationHeaderId = json['NotificationHeaderId']; Subject = json['Subject']; Status = json['Status']; NeedsCloseApproval = json['NeedsCloseApproval']; IsDeleted = json['IsDeleted']; CreatedBy = json['CreatedBy']; DateCreated = JsonConverters.fromJson(json['DateCreated'],'DateTime',context!); return this; } Map toJson() => { 'NotificationHeaderId': NotificationHeaderId, 'Subject': Subject, 'Status': Status, 'NeedsCloseApproval': NeedsCloseApproval, 'IsDeleted': IsDeleted, 'CreatedBy': CreatedBy, 'DateCreated': JsonConverters.toJson(DateCreated,'DateTime',context!) }; getTypeName() => "NotificationHeader"; TypeContext? context = _ctx; } class Notification extends NotificationHeader implements IConvertible { Notification(); Notification.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); getTypeName() => "Notification"; TypeContext? context = _ctx; } class NotificationsResponse implements IConvertible { ResponseStatus? ResponseStatus; List? Notifications = []; NotificationsResponse({this.ResponseStatus,this.Notifications}); NotificationsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); Notifications = JsonConverters.fromJson(json['Notifications'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'Notifications': JsonConverters.toJson(Notifications,'List',context!) }; getTypeName() => "NotificationsResponse"; TypeContext? context = _ctx; } // @Route("/v1/Notifications", "GET,OPTIONS") class NotificationsRequest implements IReturn, IConvertible, IGet { NotificationsRequest(); NotificationsRequest.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => NotificationsResponse(); getResponseTypeName() => "NotificationsResponse"; getTypeName() => "NotificationsRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'NotificationHeader': TypeInfo(TypeOf.Class, create:() => NotificationHeader()), 'Notification': TypeInfo(TypeOf.Class, create:() => Notification()), 'NotificationsResponse': TypeInfo(TypeOf.Class, create:() => NotificationsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'NotificationsRequest': TypeInfo(TypeOf.Class, create:() => NotificationsRequest()), });