/* Options: Date: 2024-05-20 21:18:38 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: UserFindByLoginRequest.* //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 UserFindByLoginRequestDto extends ApiDtoBase implements IConvertible { int? UserId; String? UserName; String? Password; UserFindByLoginRequestDto({this.UserId,this.UserName,this.Password}); UserFindByLoginRequestDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); UserId = json['UserId']; UserName = json['UserName']; Password = json['Password']; return this; } Map toJson() => super.toJson()..addAll({ 'UserId': UserId, 'UserName': UserName, 'Password': Password }); getTypeName() => "UserFindByLoginRequestDto"; TypeContext? context = _ctx; } class ApiResponseBase implements IConvertible { bool? Success; String? Message; ApiResponseBase({this.Success,this.Message}); ApiResponseBase.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Success = json['Success']; Message = json['Message']; return this; } Map toJson() => { 'Success': Success, 'Message': Message }; getTypeName() => "ApiResponseBase"; TypeContext? context = _ctx; } class UserFindByLoginResponseDto extends ApiResponseBase implements IConvertible { int? HomeStoreId; int? UserId; UserFindByLoginResponseDto({this.HomeStoreId,this.UserId}); UserFindByLoginResponseDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); HomeStoreId = json['HomeStoreId']; UserId = json['UserId']; return this; } Map toJson() => super.toJson()..addAll({ 'HomeStoreId': HomeStoreId, 'UserId': UserId }); getTypeName() => "UserFindByLoginResponseDto"; TypeContext? context = _ctx; } class UserFindByLoginResponse extends UserFindByLoginResponseDto implements IConvertible { int? HomeStoreId; int? UserId; UserFindByLoginResponse({this.HomeStoreId,this.UserId}); UserFindByLoginResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); HomeStoreId = json['HomeStoreId']; UserId = json['UserId']; return this; } Map toJson() => super.toJson()..addAll({ 'HomeStoreId': HomeStoreId, 'UserId': UserId }); getTypeName() => "UserFindByLoginResponse"; TypeContext? context = _ctx; } // @Route("/users/find/login-details", "GET") class UserFindByLoginRequest extends UserFindByLoginRequestDto implements IReturn, 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; /** * ClubReady Club ID (StoreID internally) */ // @ApiMember(DataType="integer", Description="ClubReady Club ID (StoreID internally)", Name="StoreId", ParameterType="query") int? StoreId; /** * StoreId OR ChainId is required */ // @ApiMember(DataType="integer", Description="StoreId OR ChainId is required", Name="ChainId", ParameterType="query") int? ChainId; /** * ClubReady username */ // @ApiMember(DataType="string", Description="ClubReady username", IsRequired=true, Name="UserName", ParameterType="query") String? UserName; /** * ClubReady password */ // @ApiMember(DataType="string", Description="ClubReady password", IsRequired=true, Name="Password", ParameterType="query") String? Password; int? RestrictedId; RestrictedResourceType? RestrictedResourceType; UserFindByLoginRequest({this.ApiKey,this.StoreId,this.ChainId,this.UserName,this.Password,this.RestrictedId,this.RestrictedResourceType}); UserFindByLoginRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); ApiKey = json['ApiKey']; StoreId = json['StoreId']; ChainId = json['ChainId']; UserName = json['UserName']; Password = json['Password']; RestrictedId = json['RestrictedId']; RestrictedResourceType = JsonConverters.fromJson(json['RestrictedResourceType'],'RestrictedResourceType',context!); return this; } Map toJson() => super.toJson()..addAll({ 'ApiKey': ApiKey, 'StoreId': StoreId, 'ChainId': ChainId, 'UserName': UserName, 'Password': Password, 'RestrictedId': RestrictedId, 'RestrictedResourceType': JsonConverters.toJson(RestrictedResourceType,'RestrictedResourceType',context!) }); createResponse() => UserFindByLoginResponse(); getResponseTypeName() => "UserFindByLoginResponse"; getTypeName() => "UserFindByLoginRequest"; 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()), 'UserFindByLoginRequestDto': TypeInfo(TypeOf.Class, create:() => UserFindByLoginRequestDto()), 'ApiResponseBase': TypeInfo(TypeOf.Class, create:() => ApiResponseBase()), 'UserFindByLoginResponseDto': TypeInfo(TypeOf.Class, create:() => UserFindByLoginResponseDto()), 'UserFindByLoginResponse': TypeInfo(TypeOf.Class, create:() => UserFindByLoginResponse()), 'UserFindByLoginRequest': TypeInfo(TypeOf.Class, create:() => UserFindByLoginRequest()), });