/* Options: Date: 2024-05-15 20:35:23 Version: 6.50 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://www.clubready.com/api/current //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: DoCheckInRequest.* //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 DoCheckInRequestDto extends ApiDtoBase implements IConvertible { String? Barcode; int? UserId; DateTime? UtcTimeStamp; DoCheckInRequestDto({this.Barcode,this.UserId,this.UtcTimeStamp}); DoCheckInRequestDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Barcode = json['Barcode']; UserId = json['UserId']; UtcTimeStamp = JsonConverters.fromJson(json['UtcTimeStamp'],'DateTime',context!); return this; } Map toJson() => super.toJson()..addAll({ 'Barcode': Barcode, 'UserId': UserId, 'UtcTimeStamp': JsonConverters.toJson(UtcTimeStamp,'DateTime',context!) }); getTypeName() => "DoCheckInRequestDto"; TypeContext? context = _ctx; } /** * Check a user into a club */ // @Route("/users/checkin", "POST") // @Api(Description="Check a user into a club") class DoCheckInRequest extends DoCheckInRequestDto 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; /** * User barcode */ // @ApiMember(DataType="string", Description="User barcode", IsRequired=true, Name="Barcode", ParameterType="query") String? Barcode; /** * ClubReady StoreId required */ // @ApiMember(DataType="integer", Description="ClubReady StoreId required", IsRequired=true, Name="StoreId", ParameterType="query") int? StoreId; /** * UserId to check into club */ // @ApiMember(DataType="integer", Description="UserId to check into club", Name="UserId", ParameterType="query") int? UserId; int? RestrictedId; RestrictedResourceType? RestrictedResourceType; DoCheckInRequest({this.ApiKey,this.Barcode,this.StoreId,this.UserId,this.RestrictedId,this.RestrictedResourceType}); DoCheckInRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); ApiKey = json['ApiKey']; Barcode = json['Barcode']; StoreId = json['StoreId']; UserId = json['UserId']; RestrictedId = json['RestrictedId']; RestrictedResourceType = JsonConverters.fromJson(json['RestrictedResourceType'],'RestrictedResourceType',context!); return this; } Map toJson() => super.toJson()..addAll({ 'ApiKey': ApiKey, 'Barcode': Barcode, 'StoreId': StoreId, 'UserId': UserId, 'RestrictedId': RestrictedId, 'RestrictedResourceType': JsonConverters.toJson(RestrictedResourceType,'RestrictedResourceType',context!) }); getTypeName() => "DoCheckInRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'www.clubready.com', types: { 'RestrictedResourceType': TypeInfo(TypeOf.Enum, enumValues:RestrictedResourceType.values), 'IRestrictedApiRequest': TypeInfo(TypeOf.Interface), 'IApiKeyEndpoint': TypeInfo(TypeOf.Interface), 'ApiDtoBase': TypeInfo(TypeOf.Class, create:() => ApiDtoBase()), 'DoCheckInRequestDto': TypeInfo(TypeOf.Class, create:() => DoCheckInRequestDto()), 'DoCheckInRequest': TypeInfo(TypeOf.Class, create:() => DoCheckInRequest()), });