/* Options: Date: 2025-04-04 16:09:45 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: FindOrder.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class OrderInstance implements IConvertible { int? OrderId; String? OrderNumber; String? OrderCode; double? OrderAmount; DateTime? ReceivedDateTime; DateTime? CompletedDateTime; DateTime? RefundedDateTime; double? OrderFee; OrderInstance({this.OrderId,this.OrderNumber,this.OrderCode,this.OrderAmount,this.ReceivedDateTime,this.CompletedDateTime,this.RefundedDateTime,this.OrderFee}); OrderInstance.fromJson(Map json) { fromMap(json); } fromMap(Map json) { OrderId = json['OrderId']; OrderNumber = json['OrderNumber']; OrderCode = json['OrderCode']; OrderAmount = JsonConverters.toDouble(json['OrderAmount']); ReceivedDateTime = JsonConverters.fromJson(json['ReceivedDateTime'],'DateTime',context!); CompletedDateTime = JsonConverters.fromJson(json['CompletedDateTime'],'DateTime',context!); RefundedDateTime = JsonConverters.fromJson(json['RefundedDateTime'],'DateTime',context!); OrderFee = JsonConverters.toDouble(json['OrderFee']); return this; } Map toJson() => { 'OrderId': OrderId, 'OrderNumber': OrderNumber, 'OrderCode': OrderCode, 'OrderAmount': OrderAmount, 'ReceivedDateTime': JsonConverters.toJson(ReceivedDateTime,'DateTime',context!), 'CompletedDateTime': JsonConverters.toJson(CompletedDateTime,'DateTime',context!), 'RefundedDateTime': JsonConverters.toJson(RefundedDateTime,'DateTime',context!), 'OrderFee': OrderFee }; getTypeName() => "OrderInstance"; TypeContext? context = _ctx; } // @Route("/api/Query/Order") // @AutoQueryViewer(Description="", IconUrl="octicon:database", Title="Order") class FindOrder extends QueryDb implements IReturn>, IConvertible { FindOrder(); FindOrder.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "FindOrder"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.clubmanagercentral.com', types: { 'OrderInstance': TypeInfo(TypeOf.Class, create:() => OrderInstance()), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'FindOrder': TypeInfo(TypeOf.Class, create:() => FindOrder()), 'List': TypeInfo(TypeOf.Class, create:() => []), });