/* Options: Date: 2025-04-04 17:19:19 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: FindBranchCreated.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class BranchCreatedInstance implements IConvertible { int? BranchCreatedId; int? ParentBranchId; int? ParentMemberId; int? ChildBranchId; int? DiscountPercent; int? CommissionPercent; int? CreatedByUserId; DateTime? Created; DateTime? Deleted; int? DeletedByUserId; int? CreatedUserId; BranchCreatedInstance({this.BranchCreatedId,this.ParentBranchId,this.ParentMemberId,this.ChildBranchId,this.DiscountPercent,this.CommissionPercent,this.CreatedByUserId,this.Created,this.Deleted,this.DeletedByUserId,this.CreatedUserId}); BranchCreatedInstance.fromJson(Map json) { fromMap(json); } fromMap(Map json) { BranchCreatedId = json['BranchCreatedId']; ParentBranchId = json['ParentBranchId']; ParentMemberId = json['ParentMemberId']; ChildBranchId = json['ChildBranchId']; DiscountPercent = json['DiscountPercent']; CommissionPercent = json['CommissionPercent']; CreatedByUserId = json['CreatedByUserId']; Created = JsonConverters.fromJson(json['Created'],'DateTime',context!); Deleted = JsonConverters.fromJson(json['Deleted'],'DateTime',context!); DeletedByUserId = json['DeletedByUserId']; CreatedUserId = json['CreatedUserId']; return this; } Map toJson() => { 'BranchCreatedId': BranchCreatedId, 'ParentBranchId': ParentBranchId, 'ParentMemberId': ParentMemberId, 'ChildBranchId': ChildBranchId, 'DiscountPercent': DiscountPercent, 'CommissionPercent': CommissionPercent, 'CreatedByUserId': CreatedByUserId, 'Created': JsonConverters.toJson(Created,'DateTime',context!), 'Deleted': JsonConverters.toJson(Deleted,'DateTime',context!), 'DeletedByUserId': DeletedByUserId, 'CreatedUserId': CreatedUserId }; getTypeName() => "BranchCreatedInstance"; TypeContext? context = _ctx; } // @Route("/api/Query/BranchCreated") // @AutoQueryViewer(Description="", IconUrl="octicon:database", Title="BranchCreated") class FindBranchCreated extends QueryDb implements IReturn>, IConvertible { FindBranchCreated(); FindBranchCreated.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "FindBranchCreated"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.clubmanagercentral.com', types: { 'BranchCreatedInstance': TypeInfo(TypeOf.Class, create:() => BranchCreatedInstance()), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'FindBranchCreated': TypeInfo(TypeOf.Class, create:() => FindBranchCreated()), 'List': TypeInfo(TypeOf.Class, create:() => []), });