/* Options: Date: 2024-11-24 14:54:26 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: UserListDateAddedRequest.* //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 UserListDateAddedRequestDto extends ApiDtoBase implements IConvertible { DateTime? FromDate; DateTime? ToDate; UserListDateAddedRequestDto({this.FromDate,this.ToDate}); UserListDateAddedRequestDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); FromDate = JsonConverters.fromJson(json['FromDate'],'DateTime',context!); ToDate = JsonConverters.fromJson(json['ToDate'],'DateTime',context!); return this; } Map toJson() => super.toJson()..addAll({ 'FromDate': JsonConverters.toJson(FromDate,'DateTime',context!), 'ToDate': JsonConverters.toJson(ToDate,'DateTime',context!) }); getTypeName() => "UserListDateAddedRequestDto"; TypeContext? context = _ctx; } class ClubClient implements IConvertible { int? UserId; String? Username; String? FirstName; String? LastName; int? StoreId; DateTime? DateAdded; int? ReferredBy; int? AddedBy; int? ReferralTypeId; String? ReferralTypeName; ClubClient({this.UserId,this.Username,this.FirstName,this.LastName,this.StoreId,this.DateAdded,this.ReferredBy,this.AddedBy,this.ReferralTypeId,this.ReferralTypeName}); ClubClient.fromJson(Map json) { fromMap(json); } fromMap(Map json) { UserId = json['UserId']; Username = json['Username']; FirstName = json['FirstName']; LastName = json['LastName']; StoreId = json['StoreId']; DateAdded = JsonConverters.fromJson(json['DateAdded'],'DateTime',context!); ReferredBy = json['ReferredBy']; AddedBy = json['AddedBy']; ReferralTypeId = json['ReferralTypeId']; ReferralTypeName = json['ReferralTypeName']; return this; } Map toJson() => { 'UserId': UserId, 'Username': Username, 'FirstName': FirstName, 'LastName': LastName, 'StoreId': StoreId, 'DateAdded': JsonConverters.toJson(DateAdded,'DateTime',context!), 'ReferredBy': ReferredBy, 'AddedBy': AddedBy, 'ReferralTypeId': ReferralTypeId, 'ReferralTypeName': ReferralTypeName }; getTypeName() => "ClubClient"; TypeContext? context = _ctx; } class UserListDateAddedResponseDto implements IConvertible { List? Users; UserListDateAddedResponseDto({this.Users}); UserListDateAddedResponseDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Users = JsonConverters.fromJson(json['Users'],'List',context!); return this; } Map toJson() => { 'Users': JsonConverters.toJson(Users,'List',context!) }; getTypeName() => "UserListDateAddedResponseDto"; TypeContext? context = _ctx; } class UserListDateAddedResponse extends UserListDateAddedResponseDto implements IConvertible { List? Users; UserListDateAddedResponse({this.Users}); UserListDateAddedResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Users = JsonConverters.fromJson(json['Users'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'Users': JsonConverters.toJson(Users,'List',context!) }); getTypeName() => "UserListDateAddedResponse"; TypeContext? context = _ctx; } // @Route("/users/date-added", "GET") class UserListDateAddedRequest extends UserListDateAddedRequestDto 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; /** * Chain ID */ // @ApiMember(DataType="integer", Description="Chain ID", Name="ChainId", ParameterType="query") int? ChainId; /** * Store ID */ // @ApiMember(DataType="integer", Description="Store ID", Name="StoreId", ParameterType="query") int? StoreId; /** * UTC Format */ // @ApiMember(DataType="date", Description="UTC Format", IsRequired=true, Name="FromDate", ParameterType="query") DateTime? FromDate; /** * Max 24 Hours (UTC Format) */ // @ApiMember(DataType="date", Description="Max 24 Hours (UTC Format)", IsRequired=true, Name="ToDate", ParameterType="query") DateTime? ToDate; int? RestrictedId; RestrictedResourceType? RestrictedResourceType; UserListDateAddedRequest({this.ApiKey,this.ChainId,this.StoreId,this.FromDate,this.ToDate,this.RestrictedId,this.RestrictedResourceType}); UserListDateAddedRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); ApiKey = json['ApiKey']; ChainId = json['ChainId']; StoreId = json['StoreId']; FromDate = JsonConverters.fromJson(json['FromDate'],'DateTime',context!); ToDate = JsonConverters.fromJson(json['ToDate'],'DateTime',context!); RestrictedId = json['RestrictedId']; RestrictedResourceType = JsonConverters.fromJson(json['RestrictedResourceType'],'RestrictedResourceType',context!); return this; } Map toJson() => super.toJson()..addAll({ 'ApiKey': ApiKey, 'ChainId': ChainId, 'StoreId': StoreId, 'FromDate': JsonConverters.toJson(FromDate,'DateTime',context!), 'ToDate': JsonConverters.toJson(ToDate,'DateTime',context!), 'RestrictedId': RestrictedId, 'RestrictedResourceType': JsonConverters.toJson(RestrictedResourceType,'RestrictedResourceType',context!) }); createResponse() => UserListDateAddedResponse(); getResponseTypeName() => "UserListDateAddedResponse"; getTypeName() => "UserListDateAddedRequest"; 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()), 'UserListDateAddedRequestDto': TypeInfo(TypeOf.Class, create:() => UserListDateAddedRequestDto()), 'ClubClient': TypeInfo(TypeOf.Class, create:() => ClubClient()), 'UserListDateAddedResponseDto': TypeInfo(TypeOf.Class, create:() => UserListDateAddedResponseDto()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'UserListDateAddedResponse': TypeInfo(TypeOf.Class, create:() => UserListDateAddedResponse()), 'UserListDateAddedRequest': TypeInfo(TypeOf.Class, create:() => UserListDateAddedRequest()), });