/* Options: Date: 2025-12-06 08:30:33 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: OutgoingNotifications.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class OutgoingNotificationObject implements IConvertible { String? Id; String? CustomerId; String? Message; String? NotificationMethod; DateTime? DateSent; OutgoingNotificationObject({this.Id,this.CustomerId,this.Message,this.NotificationMethod,this.DateSent}); OutgoingNotificationObject.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; CustomerId = json['CustomerId']; Message = json['Message']; NotificationMethod = json['NotificationMethod']; DateSent = JsonConverters.fromJson(json['DateSent'],'DateTime',context!); return this; } Map toJson() => { 'Id': Id, 'CustomerId': CustomerId, 'Message': Message, 'NotificationMethod': NotificationMethod, 'DateSent': JsonConverters.toJson(DateSent,'DateTime',context!) }; getTypeName() => "OutgoingNotificationObject"; TypeContext? context = _ctx; } class OutgoingNotificationsResponse implements IConvertible { ResponseStatus? ResponseStatus; List? OutgoingNotifications = []; OutgoingNotificationsResponse({this.ResponseStatus,this.OutgoingNotifications}); OutgoingNotificationsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); OutgoingNotifications = JsonConverters.fromJson(json['OutgoingNotifications'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'OutgoingNotifications': JsonConverters.toJson(OutgoingNotifications,'List',context!) }; getTypeName() => "OutgoingNotificationsResponse"; TypeContext? context = _ctx; } // @Route("/v1/OutgoingNotifications", "GET,POST,PUT,DELETE,OPTIONS") // @Route("/v1/OutgoingNotifications/{Id}", "GET,POST,PUT,DELETE,OPTIONS") class OutgoingNotifications extends OutgoingNotificationObject implements IReturn, IConvertible, IPost { String? ApiKey; OutgoingNotifications({this.ApiKey}); OutgoingNotifications.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); ApiKey = json['ApiKey']; return this; } Map toJson() => super.toJson()..addAll({ 'ApiKey': ApiKey }); createResponse() => OutgoingNotificationsResponse(); getResponseTypeName() => "OutgoingNotificationsResponse"; getTypeName() => "OutgoingNotifications"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'OutgoingNotificationObject': TypeInfo(TypeOf.Class, create:() => OutgoingNotificationObject()), 'OutgoingNotificationsResponse': TypeInfo(TypeOf.Class, create:() => OutgoingNotificationsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'OutgoingNotifications': TypeInfo(TypeOf.Class, create:() => OutgoingNotifications()), });