/* Options: Date: 2025-02-05 15:56:57 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: FindPaymentGateway.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class PaymentGatewayInstance implements IConvertible { int? PaymentGatewayId; String? Name; String? TypeName; String? Currency; String? Token; String? Metadata; int? GatewayType; bool? IsDefault; bool? IsPublic; DateTime? Deleted; DateTime? Created; DateTime? AccountingStartDate; String? BankAccount; DateTime? AccountingEndDate; PaymentGatewayInstance({this.PaymentGatewayId,this.Name,this.TypeName,this.Currency,this.Token,this.Metadata,this.GatewayType,this.IsDefault,this.IsPublic,this.Deleted,this.Created,this.AccountingStartDate,this.BankAccount,this.AccountingEndDate}); PaymentGatewayInstance.fromJson(Map json) { fromMap(json); } fromMap(Map json) { PaymentGatewayId = json['PaymentGatewayId']; Name = json['Name']; TypeName = json['TypeName']; Currency = json['Currency']; Token = json['Token']; Metadata = json['Metadata']; GatewayType = json['GatewayType']; IsDefault = json['IsDefault']; IsPublic = json['IsPublic']; Deleted = JsonConverters.fromJson(json['Deleted'],'DateTime',context!); Created = JsonConverters.fromJson(json['Created'],'DateTime',context!); AccountingStartDate = JsonConverters.fromJson(json['AccountingStartDate'],'DateTime',context!); BankAccount = json['BankAccount']; AccountingEndDate = JsonConverters.fromJson(json['AccountingEndDate'],'DateTime',context!); return this; } Map toJson() => { 'PaymentGatewayId': PaymentGatewayId, 'Name': Name, 'TypeName': TypeName, 'Currency': Currency, 'Token': Token, 'Metadata': Metadata, 'GatewayType': GatewayType, 'IsDefault': IsDefault, 'IsPublic': IsPublic, 'Deleted': JsonConverters.toJson(Deleted,'DateTime',context!), 'Created': JsonConverters.toJson(Created,'DateTime',context!), 'AccountingStartDate': JsonConverters.toJson(AccountingStartDate,'DateTime',context!), 'BankAccount': BankAccount, 'AccountingEndDate': JsonConverters.toJson(AccountingEndDate,'DateTime',context!) }; getTypeName() => "PaymentGatewayInstance"; TypeContext? context = _ctx; } // @Route("/api/Query/PaymentGateway") // @AutoQueryViewer(Description="", IconUrl="octicon:database", Title="PaymentGateway") class FindPaymentGateway extends QueryDb implements IReturn>, IConvertible { FindPaymentGateway(); FindPaymentGateway.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "FindPaymentGateway"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.clubmanagercentral.com', types: { 'PaymentGatewayInstance': TypeInfo(TypeOf.Class, create:() => PaymentGatewayInstance()), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'FindPaymentGateway': TypeInfo(TypeOf.Class, create:() => FindPaymentGateway()), 'List': TypeInfo(TypeOf.Class, create:() => []), });