/* Options: Date: 2025-03-14 13:06:48 Version: 5.140 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.clubmanagercentral.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: PaymentGatewayService.GetPaymentTokenRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class GatewayPaymentToken implements IConvertible { String? GatewayToken; String? ClientToken; GatewayPaymentToken({this.GatewayToken,this.ClientToken}); GatewayPaymentToken.fromJson(Map json) { fromMap(json); } fromMap(Map json) { GatewayToken = json['GatewayToken']; ClientToken = json['ClientToken']; return this; } Map toJson() => { 'GatewayToken': GatewayToken, 'ClientToken': ClientToken }; getTypeName() => "GatewayPaymentToken"; TypeContext? context = _ctx; } // @Route("/api/PaymentGateway/GetPaymentToken", "POST,GET") class GetPaymentTokenRequest implements IReturn, IConvertible { int? PaymentGatewayId; double? Amount; bool? Adhoc; String? Description; String? IdempotencyKey; GetPaymentTokenRequest({this.PaymentGatewayId,this.Amount,this.Adhoc,this.Description,this.IdempotencyKey}); GetPaymentTokenRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { PaymentGatewayId = json['PaymentGatewayId']; Amount = JsonConverters.toDouble(json['Amount']); Adhoc = json['Adhoc']; Description = json['Description']; IdempotencyKey = json['IdempotencyKey']; return this; } Map toJson() => { 'PaymentGatewayId': PaymentGatewayId, 'Amount': Amount, 'Adhoc': Adhoc, 'Description': Description, 'IdempotencyKey': IdempotencyKey }; createResponse() => GatewayPaymentToken(); getResponseTypeName() => "GatewayPaymentToken"; getTypeName() => "GetPaymentTokenRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.clubmanagercentral.com', types: { 'GatewayPaymentToken': TypeInfo(TypeOf.Class, create:() => GatewayPaymentToken()), 'GetPaymentTokenRequest': TypeInfo(TypeOf.Class, create:() => GetPaymentTokenRequest()), });