/* Options: Date: 2026-06-22 20:29:41 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: AdditionalServiceSendRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class AdditionalServiceSendResponse implements IConvertible { ResponseStatus? ResponseStatus; bool? Success; String? PortalUrl; List? DeliveryErrors = []; AdditionalServiceSendResponse({this.ResponseStatus,this.Success,this.PortalUrl,this.DeliveryErrors}); AdditionalServiceSendResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); Success = json['Success']; PortalUrl = json['PortalUrl']; DeliveryErrors = JsonConverters.fromJson(json['DeliveryErrors'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'Success': Success, 'PortalUrl': PortalUrl, 'DeliveryErrors': JsonConverters.toJson(DeliveryErrors,'List',context!) }; getTypeName() => "AdditionalServiceSendResponse"; TypeContext? context = _ctx; } // @Route("/v1/additionalservice/{Id}/send", "POST,OPTIONS") class AdditionalServiceSendRequest implements IReturn, IConvertible, IPost { int? Id; String? Title; double? Amount; bool? PriceTbd; int? RecipientContactId; String? RecipientEmail; String? RecipientPhone; bool? DeliverEmail; bool? DeliverSms; AdditionalServiceSendRequest({this.Id,this.Title,this.Amount,this.PriceTbd,this.RecipientContactId,this.RecipientEmail,this.RecipientPhone,this.DeliverEmail,this.DeliverSms}); AdditionalServiceSendRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Title = json['Title']; Amount = JsonConverters.toDouble(json['Amount']); PriceTbd = json['PriceTbd']; RecipientContactId = json['RecipientContactId']; RecipientEmail = json['RecipientEmail']; RecipientPhone = json['RecipientPhone']; DeliverEmail = json['DeliverEmail']; DeliverSms = json['DeliverSms']; return this; } Map toJson() => { 'Id': Id, 'Title': Title, 'Amount': Amount, 'PriceTbd': PriceTbd, 'RecipientContactId': RecipientContactId, 'RecipientEmail': RecipientEmail, 'RecipientPhone': RecipientPhone, 'DeliverEmail': DeliverEmail, 'DeliverSms': DeliverSms }; createResponse() => AdditionalServiceSendResponse(); getResponseTypeName() => "AdditionalServiceSendResponse"; getTypeName() => "AdditionalServiceSendRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'AdditionalServiceSendResponse': TypeInfo(TypeOf.Class, create:() => AdditionalServiceSendResponse()), 'AdditionalServiceSendRequest': TypeInfo(TypeOf.Class, create:() => AdditionalServiceSendRequest()), });