/* Options: Date: 2025-04-27 03:15:22 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: AdminIncentiveActionQuery.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class BaseModel implements IConvertible { BaseModel(); BaseModel.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "BaseModel"; TypeContext? context = _ctx; } enum IncentiveActionType { Upgrade, AddOn, Information, } class IncentiveAction extends BaseModel implements IConvertible { int? Id; String? Description; IncentiveActionType? ActionType; String? Page; String? Segment; String? Element; int? LicenseTypeId; IncentiveAction({this.Id,this.Description,this.ActionType,this.Page,this.Segment,this.Element,this.LicenseTypeId}); IncentiveAction.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Id = json['Id']; Description = json['Description']; ActionType = JsonConverters.fromJson(json['ActionType'],'IncentiveActionType',context!); Page = json['Page']; Segment = json['Segment']; Element = json['Element']; LicenseTypeId = json['LicenseTypeId']; return this; } Map toJson() => super.toJson()..addAll({ 'Id': Id, 'Description': Description, 'ActionType': JsonConverters.toJson(ActionType,'IncentiveActionType',context!), 'Page': Page, 'Segment': Segment, 'Element': Element, 'LicenseTypeId': LicenseTypeId }); getTypeName() => "IncentiveAction"; TypeContext? context = _ctx; } // @Route("/superadmin/incentives/action", "GET") // @ValidateRequest(Validator="IsAuthenticated") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) class AdminIncentiveActionQuery extends QueryDb2> implements IReturn>>, IConvertible, IGet { int? Id; String? CountryId; AdminIncentiveActionQuery({this.Id,this.CountryId}); AdminIncentiveActionQuery.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Id = json['Id']; CountryId = json['CountryId']; return this; } Map toJson() => super.toJson()..addAll({ 'Id': Id, 'CountryId': CountryId }); createResponse() => QueryResponse>(); getResponseTypeName() => "QueryResponse>"; getTypeName() => "AdminIncentiveActionQuery"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'BaseModel': TypeInfo(TypeOf.Class, create:() => BaseModel()), 'IncentiveActionType': TypeInfo(TypeOf.Enum, enumValues:IncentiveActionType.values), 'IncentiveAction': TypeInfo(TypeOf.Class, create:() => IncentiveAction()), 'QueryResponse>': TypeInfo(TypeOf.Class, create:() => QueryResponse>()), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'IncentiveActionResponse': TypeInfo(TypeOf.Class, create:() => IncentiveActionResponse()), 'AdminIncentiveActionQuery': TypeInfo(TypeOf.Class, create:() => AdminIncentiveActionQuery()), 'List>': TypeInfo(TypeOf.Class, create:() => >[]), });