/* Options: Date: 2024-11-24 14:43:42 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: AddUserWaiverRequest.* //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 AddUserWaiverResponse implements IConvertible { bool? Success; String? Message; AddUserWaiverResponse({this.Success,this.Message}); AddUserWaiverResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Success = json['Success']; Message = json['Message']; return this; } Map toJson() => { 'Success': Success, 'Message': Message }; getTypeName() => "AddUserWaiverResponse"; TypeContext? context = _ctx; } // @Route("/users/{UserId}/add-waiver", "POST") class AddUserWaiverRequest 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; /** * Store ID */ // @ApiMember(DataType="integer", Description="Store ID", IsRequired=true, Name="StoreId", ParameterType="query") int? StoreId; /** * ClubReady User ID */ // @ApiMember(DataType="integer", Description="ClubReady User ID", IsRequired=true, Name="UserId", ParameterType="path") int? UserId; /** * Form ID */ // @ApiMember(DataType="integer", Description="Form ID", Name="FormId", ParameterType="query") int? FormId; /** * Base64 encoded PDF string */ // @ApiMember(DataType="string", Description="Base64 encoded PDF string", IsRequired=true, Name="WaiverPdf", ParameterType="form") String? WaiverPdf; int? RestrictedId; RestrictedResourceType? RestrictedResourceType; AddUserWaiverRequest({this.ApiKey,this.StoreId,this.UserId,this.FormId,this.WaiverPdf,this.RestrictedId,this.RestrictedResourceType}); AddUserWaiverRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ApiKey = json['ApiKey']; StoreId = json['StoreId']; UserId = json['UserId']; FormId = json['FormId']; WaiverPdf = json['WaiverPdf']; RestrictedId = json['RestrictedId']; RestrictedResourceType = JsonConverters.fromJson(json['RestrictedResourceType'],'RestrictedResourceType',context!); return this; } Map toJson() => { 'ApiKey': ApiKey, 'StoreId': StoreId, 'UserId': UserId, 'FormId': FormId, 'WaiverPdf': WaiverPdf, 'RestrictedId': RestrictedId, 'RestrictedResourceType': JsonConverters.toJson(RestrictedResourceType,'RestrictedResourceType',context!) }; createResponse() => AddUserWaiverResponse(); getResponseTypeName() => "AddUserWaiverResponse"; getTypeName() => "AddUserWaiverRequest"; 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), 'AddUserWaiverResponse': TypeInfo(TypeOf.Class, create:() => AddUserWaiverResponse()), 'AddUserWaiverRequest': TypeInfo(TypeOf.Class, create:() => AddUserWaiverRequest()), });