/* Options: Date: 2025-12-06 08:53:54 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: NotificationHeaderRequest.* //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 NotificationHeaderResponse implements IConvertible { ResponseStatus? ResponseStatus; List? NotificationHeader = []; NotificationHeaderResponse({this.ResponseStatus,this.NotificationHeader}); NotificationHeaderResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); NotificationHeader = JsonConverters.fromJson(json['NotificationHeader'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'NotificationHeader': JsonConverters.toJson(NotificationHeader,'List',context!) }; getTypeName() => "NotificationHeaderResponse"; TypeContext? context = _ctx; } // @Route("/v1/NotificationHeader", "GET,POST,PUT,DELETE,OPTIONS") // @Route("/v1/NotificationHeader/{NotificationHeaderId}", "GET,POST,PUT,DELETE,OPTIONS") class NotificationHeaderRequest implements IReturn, IConvertible, IPost { List? NotificationHeader = []; NotificationHeaderRequest({this.NotificationHeader}); NotificationHeaderRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { NotificationHeader = JsonConverters.fromJson(json['NotificationHeader'],'List',context!); return this; } Map toJson() => { 'NotificationHeader': JsonConverters.toJson(NotificationHeader,'List',context!) }; createResponse() => NotificationHeaderResponse(); getResponseTypeName() => "NotificationHeaderResponse"; getTypeName() => "NotificationHeaderRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'NotificationHeader': TypeInfo(TypeOf.Class, create:() => NotificationHeader()), 'NotificationHeaderResponse': TypeInfo(TypeOf.Class, create:() => NotificationHeaderResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'NotificationHeaderRequest': TypeInfo(TypeOf.Class, create:() => NotificationHeaderRequest()), });