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