/* Options: Date: 2026-07-10 10:46:27 Version: 10.06 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://s4w2.api.bettor.webhop.biz //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: RequestPoolTransaction.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class PoolRef implements IConvertible { int id = 0; String? name; PoolRef({this.id,this.name}); PoolRef.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; return this; } Map toJson() => { 'id': id, 'name': name }; getTypeName() => "PoolRef"; TypeContext? context = _ctx; } class PoolTransaction implements IConvertible { PoolRef? source; PoolRef? destination; double amount = 0; PoolTransaction({this.source,this.destination,this.amount}); PoolTransaction.fromJson(Map json) { fromMap(json); } fromMap(Map json) { source = JsonConverters.fromJson(json['source'],'PoolRef',context!); destination = JsonConverters.fromJson(json['destination'],'PoolRef',context!); amount = JsonConverters.toDouble(json['amount']); return this; } Map toJson() => { 'source': JsonConverters.toJson(source,'PoolRef',context!), 'destination': JsonConverters.toJson(destination,'PoolRef',context!), 'amount': amount }; getTypeName() => "PoolTransaction"; TypeContext? context = _ctx; } // @Route("/cmd/pool-transaction/request", "POST") class RequestPoolTransaction implements IReturn, IConvertible, IPost { String? id; PoolTransaction? transaction; RequestPoolTransaction({this.id,this.transaction}); RequestPoolTransaction.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; transaction = JsonConverters.fromJson(json['transaction'],'PoolTransaction',context!); return this; } Map toJson() => { 'id': id, 'transaction': JsonConverters.toJson(transaction,'PoolTransaction',context!) }; createResponse() => ResponseStatus(); getResponseTypeName() => "ResponseStatus"; getTypeName() => "RequestPoolTransaction"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 's4w2.api.bettor.webhop.biz', types: { 'PoolRef': TypeInfo(TypeOf.Class, create:() => PoolRef()), 'PoolTransaction': TypeInfo(TypeOf.Class, create:() => PoolTransaction()), 'RequestPoolTransaction': TypeInfo(TypeOf.Class, create:() => RequestPoolTransaction()), });