/* Options: Date: 2024-11-24 14:25:35 Version: 6.50 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://clubready.com/api/current //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: UserOnlineCancelRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; enum RestrictedResourceType { Store, Chain, User, Undefined, } abstract class IRestrictedApiRequest extends IApiKeyEndpoint { int? RestrictedId; RestrictedResourceType? RestrictedResourceType; } abstract class IApiKeyEndpoint { String? ApiKey; } class ApiDtoBase implements IConvertible { String? ApiKey; int? StoreId; int? ChainId; ApiDtoBase({this.ApiKey,this.StoreId,this.ChainId}); ApiDtoBase.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ApiKey = json['ApiKey']; StoreId = json['StoreId']; ChainId = json['ChainId']; return this; } Map toJson() => { 'ApiKey': ApiKey, 'StoreId': StoreId, 'ChainId': ChainId }; getTypeName() => "ApiDtoBase"; TypeContext? context = _ctx; } class UserOnlineCancelRequestDto extends ApiDtoBase implements IConvertible { int? UserId; UserOnlineCancelRequestDto({this.UserId}); UserOnlineCancelRequestDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); UserId = json['UserId']; return this; } Map toJson() => super.toJson()..addAll({ 'UserId': UserId }); getTypeName() => "UserOnlineCancelRequestDto"; TypeContext? context = _ctx; } // @Route("/users/{UserId}/online-cancel", "GET") class UserOnlineCancelRequest extends UserOnlineCancelRequestDto implements IRestrictedApiRequest, IConvertible { /** * Api Key - grants access to resources */ // @ApiMember(DataType="string", Description="Api Key - grants access to resources", IsRequired=true, Name="ApiKey", ParameterType="query") String? ApiKey; /** * */ // @ApiMember(DataType="integer", Description="", IsRequired=true, Name="UserId", ParameterType="query") int? UserId; /** * StoreId of the user's home club */ // @ApiMember(DataType="integer", Description="StoreId of the user's home club", IsRequired=true, Name="StoreId", ParameterType="query") int? StoreId; /** * */ // @ApiMember(DataType="integer", Description="", Name="ChainId", ParameterType="query") int? ChainId; int? RestrictedId; RestrictedResourceType? RestrictedResourceType; UserOnlineCancelRequest({this.ApiKey,this.UserId,this.StoreId,this.ChainId,this.RestrictedId,this.RestrictedResourceType}); UserOnlineCancelRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); ApiKey = json['ApiKey']; UserId = json['UserId']; StoreId = json['StoreId']; ChainId = json['ChainId']; RestrictedId = json['RestrictedId']; RestrictedResourceType = JsonConverters.fromJson(json['RestrictedResourceType'],'RestrictedResourceType',context!); return this; } Map toJson() => super.toJson()..addAll({ 'ApiKey': ApiKey, 'UserId': UserId, 'StoreId': StoreId, 'ChainId': ChainId, 'RestrictedId': RestrictedId, 'RestrictedResourceType': JsonConverters.toJson(RestrictedResourceType,'RestrictedResourceType',context!) }); getTypeName() => "UserOnlineCancelRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'clubready.com', types: { 'RestrictedResourceType': TypeInfo(TypeOf.Enum, enumValues:RestrictedResourceType.values), 'IRestrictedApiRequest': TypeInfo(TypeOf.Interface), 'IApiKeyEndpoint': TypeInfo(TypeOf.Interface), 'ApiDtoBase': TypeInfo(TypeOf.Class, create:() => ApiDtoBase()), 'UserOnlineCancelRequestDto': TypeInfo(TypeOf.Class, create:() => UserOnlineCancelRequestDto()), 'UserOnlineCancelRequest': TypeInfo(TypeOf.Class, create:() => UserOnlineCancelRequest()), });