/* Options: Date: 2024-09-19 17:35:08 Version: 8.22 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://support.bettor-dual-stage.webhop.biz //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: SendNotification.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; // @Route("/support/notification/send", "POST") class SendNotification implements IReturn, IConvertible, IPost { String? senderId; String? displayName; String? destination; Map? payload; SendNotification({this.senderId,this.displayName,this.destination,this.payload}); SendNotification.fromJson(Map json) { fromMap(json); } fromMap(Map json) { senderId = json['senderId']; displayName = json['displayName']; destination = json['destination']; payload = JsonConverters.fromJson(json['payload'],'Map',context!); return this; } Map toJson() => { 'senderId': senderId, 'displayName': displayName, 'destination': destination, 'payload': JsonConverters.toJson(payload,'Map',context!) }; createResponse() => ResponseStatus(); getResponseTypeName() => "ResponseStatus"; getTypeName() => "SendNotification"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'support.bettor_dual_stage.webhop.biz', types: { 'SendNotification': TypeInfo(TypeOf.Class, create:() => SendNotification()), 'Map': TypeInfo(TypeOf.Class, create:() => Map()), });