/* Options: Date: 2025-02-05 19:55:08 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: FindPromotion.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class PromotionInstance implements IConvertible { int? PromotionId; String? Name; bool? Deleted; bool? Demo; bool? OnlineJoining; PromotionInstance({this.PromotionId,this.Name,this.Deleted,this.Demo,this.OnlineJoining}); PromotionInstance.fromJson(Map json) { fromMap(json); } fromMap(Map json) { PromotionId = json['PromotionId']; Name = json['Name']; Deleted = json['Deleted']; Demo = json['Demo']; OnlineJoining = json['OnlineJoining']; return this; } Map toJson() => { 'PromotionId': PromotionId, 'Name': Name, 'Deleted': Deleted, 'Demo': Demo, 'OnlineJoining': OnlineJoining }; getTypeName() => "PromotionInstance"; TypeContext? context = _ctx; } // @Route("/api/Query/Promotion") // @AutoQueryViewer(Description="", IconUrl="octicon:database", Title="Promotion") class FindPromotion extends QueryDb implements IReturn>, IConvertible { FindPromotion(); FindPromotion.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "FindPromotion"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.clubmanagercentral.com', types: { 'PromotionInstance': TypeInfo(TypeOf.Class, create:() => PromotionInstance()), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'FindPromotion': TypeInfo(TypeOf.Class, create:() => FindPromotion()), 'List': TypeInfo(TypeOf.Class, create:() => []), });