/* Options: Date: 2026-10-11 23:58:21 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: CustomerNotificationsRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class NotificationPrefView implements IConvertible { String? Key; String? Label; String? Sub; bool? IsOn; NotificationPrefView({this.Key,this.Label,this.Sub,this.IsOn}); NotificationPrefView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Key = json['Key']; Label = json['Label']; Sub = json['Sub']; IsOn = json['IsOn']; return this; } Map toJson() => { 'Key': Key, 'Label': Label, 'Sub': Sub, 'IsOn': IsOn }; getTypeName() => "NotificationPrefView"; TypeContext? context = _ctx; } class CustomerNotificationsResponse implements IConvertible { String? Audience; List? Items = []; int? Devices; bool? PushConfigured; ResponseStatus? ResponseStatus; CustomerNotificationsResponse({this.Audience,this.Items,this.Devices,this.PushConfigured,this.ResponseStatus}); CustomerNotificationsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Audience = json['Audience']; Items = JsonConverters.fromJson(json['Items'],'List',context!); Devices = json['Devices']; PushConfigured = json['PushConfigured']; ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'Audience': Audience, 'Items': JsonConverters.toJson(Items,'List',context!), 'Devices': Devices, 'PushConfigured': PushConfigured, 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "CustomerNotificationsResponse"; TypeContext? context = _ctx; } // @Route("/v1/c/notifications", "GET") class CustomerNotificationsRequest implements IReturn, IConvertible, IGet { String? Audience; CustomerNotificationsRequest({this.Audience}); CustomerNotificationsRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Audience = json['Audience']; return this; } Map toJson() => { 'Audience': Audience }; createResponse() => CustomerNotificationsResponse(); getResponseTypeName() => "CustomerNotificationsResponse"; getTypeName() => "CustomerNotificationsRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'NotificationPrefView': TypeInfo(TypeOf.Class, create:() => NotificationPrefView()), 'CustomerNotificationsResponse': TypeInfo(TypeOf.Class, create:() => CustomerNotificationsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'CustomerNotificationsRequest': TypeInfo(TypeOf.Class, create:() => CustomerNotificationsRequest()), });