/* Options: Date: 2025-05-06 16:16:19 Version: 6.10 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://stubbur-autoupdates-live.smartnewapis.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetPaymentMethod.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class PaymentMethod implements IConvertible { int? id; String? paymentMethodId; String? paymentMethodName; bool? active; bool? needsCardInfo; PaymentMethod({this.id,this.paymentMethodId,this.paymentMethodName,this.active,this.needsCardInfo}); PaymentMethod.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; paymentMethodId = json['paymentMethodId']; paymentMethodName = json['paymentMethodName']; active = json['active']; needsCardInfo = json['needsCardInfo']; return this; } Map toJson() => { 'id': id, 'paymentMethodId': paymentMethodId, 'paymentMethodName': paymentMethodName, 'active': active, 'needsCardInfo': needsCardInfo }; getTypeName() => "PaymentMethod"; TypeContext? context = _ctx; } // @Route("/paymentMethods/intid/{Id}", "GET POST") // @Route("/paymentMethods/nameid/{NameId}", "GET POST") class GetPaymentMethod implements IReturn, IConvertible { int? id; String? nameId; GetPaymentMethod({this.id,this.nameId}); GetPaymentMethod.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; nameId = json['nameId']; return this; } Map toJson() => { 'id': id, 'nameId': nameId }; createResponse() => PaymentMethod(); getResponseTypeName() => "PaymentMethod"; getTypeName() => "GetPaymentMethod"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'stubbur_autoupdates_live.smartnewapis.com', types: { 'PaymentMethod': TypeInfo(TypeOf.Class, create:() => PaymentMethod()), 'GetPaymentMethod': TypeInfo(TypeOf.Class, create:() => GetPaymentMethod()), });