/* Options: Date: 2026-04-04 03:04:46 Version: 8.52 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://pfapi.pstpf.com.au/api //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: UpdateContactNotifications.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class NotificationItem implements IConvertible { String? Id; String? Name; NotificationItem({this.Id,this.Name}); NotificationItem.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Name = json['Name']; return this; } Map toJson() => { 'Id': Id, 'Name': Name }; getTypeName() => "NotificationItem"; TypeContext? context = _ctx; } /** * Updates contact notifications */ // @Route("/contact/{ContactId}/updatenotifications", "PUT") // @Api(Description="Updates contact notifications") class UpdateContactNotifications implements IReturn, IConvertible, IPut { /** * Id of contact to get notification for */ // @ApiMember(Description="Id of contact to get notification for", IsRequired=true, Name="ContactId") String? ContactId; /** * Id of licensee to get notification for */ // @ApiMember(Description="Id of licensee to get notification for", IsRequired=true, Name="LicenseeId") String? LicenseeId; /** * Id of suite to get notification for */ // @ApiMember(Description="Id of suite to get notification for", IsRequired=true, Name="SuiteId") String? SuiteId; /** * List of notification to update */ // @ApiMember(Description="List of notification to update", IsRequired=true, Name="Notifications") List? Notifications = []; UpdateContactNotifications({this.ContactId,this.LicenseeId,this.SuiteId,this.Notifications}); UpdateContactNotifications.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ContactId = json['ContactId']; LicenseeId = json['LicenseeId']; SuiteId = json['SuiteId']; Notifications = JsonConverters.fromJson(json['Notifications'],'List',context!); return this; } Map toJson() => { 'ContactId': ContactId, 'LicenseeId': LicenseeId, 'SuiteId': SuiteId, 'Notifications': JsonConverters.toJson(Notifications,'List',context!) }; createResponse() => ResponseStatus(); getResponseTypeName() => "ResponseStatus"; getTypeName() => "UpdateContactNotifications"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'pfapi.pstpf.com.au', types: { 'NotificationItem': TypeInfo(TypeOf.Class, create:() => NotificationItem()), 'UpdateContactNotifications': TypeInfo(TypeOf.Class, create:() => UpdateContactNotifications()), 'List': TypeInfo(TypeOf.Class, create:() => []), });