/* Options: Date: 2025-12-06 08:59:12 Version: 8.0 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://cochraneplus-api-dev.happen.zone //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: DeleteThunderBoltActions.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class ApiServiceRequest implements IServiceRequest, IHasApiKey, IHasDeviceInfo, IConvertible { /** * The API Key required for authentication */ // @ApiMember(DataType="string", Description="The API Key required for authentication", IsRequired=true) String? apiKey; /** * Latitude of the user making this request */ // @ApiMember(DataType="double", Description="Latitude of the user making this request") double? latitude; /** * Longitude of the user making this request */ // @ApiMember(DataType="double", Description="Longitude of the user making this request") double? longitude; ApiServiceRequest({this.apiKey,this.latitude,this.longitude}); ApiServiceRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { apiKey = json['apiKey']; latitude = JsonConverters.toDouble(json['latitude']); longitude = JsonConverters.toDouble(json['longitude']); return this; } Map toJson() => { 'apiKey': apiKey, 'latitude': latitude, 'longitude': longitude }; getTypeName() => "ApiServiceRequest"; TypeContext? context = _ctx; } abstract class IServiceRequest { } abstract class IHasApiKey { String? apiKey; } abstract class IHasDeviceInfo { } class EnumOption implements IConvertible { int? value; String? label; EnumOption({this.value,this.label}); EnumOption.fromJson(Map json) { fromMap(json); } fromMap(Map json) { value = json['value']; label = json['label']; return this; } Map toJson() => { 'value': value, 'label': label }; getTypeName() => "EnumOption"; TypeContext? context = _ctx; } class ThunderBoltActionData implements IConvertible { int? id; String? actionName; String? color; int? dailyActionCount; bool? showNumberInput; bool? showEmailInput; bool? showPlatformInput; bool? showDateTimeInput; List? contactInteractionPlatforms; ThunderBoltActionData({this.id,this.actionName,this.color,this.dailyActionCount,this.showNumberInput,this.showEmailInput,this.showPlatformInput,this.showDateTimeInput,this.contactInteractionPlatforms}); ThunderBoltActionData.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; actionName = json['actionName']; color = json['color']; dailyActionCount = json['dailyActionCount']; showNumberInput = json['showNumberInput']; showEmailInput = json['showEmailInput']; showPlatformInput = json['showPlatformInput']; showDateTimeInput = json['showDateTimeInput']; contactInteractionPlatforms = JsonConverters.fromJson(json['contactInteractionPlatforms'],'List',context!); return this; } Map toJson() => { 'id': id, 'actionName': actionName, 'color': color, 'dailyActionCount': dailyActionCount, 'showNumberInput': showNumberInput, 'showEmailInput': showEmailInput, 'showPlatformInput': showPlatformInput, 'showDateTimeInput': showDateTimeInput, 'contactInteractionPlatforms': JsonConverters.toJson(contactInteractionPlatforms,'List',context!) }; getTypeName() => "ThunderBoltActionData"; TypeContext? context = _ctx; } class ThunderBoltActionEventData implements IConvertible { int? id; String? createdDate; int? actionId; String? actionName; String? color; String? notes; ThunderBoltActionEventData({this.id,this.createdDate,this.actionId,this.actionName,this.color,this.notes}); ThunderBoltActionEventData.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; createdDate = json['createdDate']; actionId = json['actionId']; actionName = json['actionName']; color = json['color']; notes = json['notes']; return this; } Map toJson() => { 'id': id, 'createdDate': createdDate, 'actionId': actionId, 'actionName': actionName, 'color': color, 'notes': notes }; getTypeName() => "ThunderBoltActionEventData"; TypeContext? context = _ctx; } class ApiServiceResponse implements IServiceResponse, IConvertible { String? description; String? heading; bool? wasSuccessful; dynamic? modelState; ApiServiceResponse({this.description,this.heading,this.wasSuccessful,this.modelState}); ApiServiceResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { description = json['description']; heading = json['heading']; wasSuccessful = json['wasSuccessful']; modelState = JsonConverters.fromJson(json['modelState'],'dynamic',context!); return this; } Map toJson() => { 'description': description, 'heading': heading, 'wasSuccessful': wasSuccessful, 'modelState': JsonConverters.toJson(modelState,'dynamic',context!) }; getTypeName() => "ApiServiceResponse"; TypeContext? context = _ctx; } class DeleteThunderBoltActionsResponse extends ApiServiceResponse implements IConvertible { int? dailyActionsNumber; List? thunderBoltActions; List? thunderBoltActionEvents; DeleteThunderBoltActionsResponse({this.dailyActionsNumber,this.thunderBoltActions,this.thunderBoltActionEvents}); DeleteThunderBoltActionsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); dailyActionsNumber = json['dailyActionsNumber']; thunderBoltActions = JsonConverters.fromJson(json['thunderBoltActions'],'List',context!); thunderBoltActionEvents = JsonConverters.fromJson(json['thunderBoltActionEvents'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'dailyActionsNumber': dailyActionsNumber, 'thunderBoltActions': JsonConverters.toJson(thunderBoltActions,'List',context!), 'thunderBoltActionEvents': JsonConverters.toJson(thunderBoltActionEvents,'List',context!) }); getTypeName() => "DeleteThunderBoltActionsResponse"; TypeContext? context = _ctx; } // @Route("/thunderbolt/delete", "DELETE") class DeleteThunderBoltActions extends ApiServiceRequest implements IReturn, IConvertible, IDelete { int? id; DeleteThunderBoltActions({this.id}); DeleteThunderBoltActions.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); id = json['id']; return this; } Map toJson() => super.toJson()..addAll({ 'id': id }); createResponse() => DeleteThunderBoltActionsResponse(); getResponseTypeName() => "DeleteThunderBoltActionsResponse"; getTypeName() => "DeleteThunderBoltActions"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'cochraneplus_api_dev.happen.zone', types: { 'ApiServiceRequest': TypeInfo(TypeOf.Class, create:() => ApiServiceRequest()), 'IServiceRequest': TypeInfo(TypeOf.Interface), 'IHasApiKey': TypeInfo(TypeOf.Interface), 'IHasDeviceInfo': TypeInfo(TypeOf.Interface), 'EnumOption': TypeInfo(TypeOf.Class, create:() => EnumOption()), 'ThunderBoltActionData': TypeInfo(TypeOf.Class, create:() => ThunderBoltActionData()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ThunderBoltActionEventData': TypeInfo(TypeOf.Class, create:() => ThunderBoltActionEventData()), 'ApiServiceResponse': TypeInfo(TypeOf.Class, create:() => ApiServiceResponse()), 'DeleteThunderBoltActionsResponse': TypeInfo(TypeOf.Class, create:() => DeleteThunderBoltActionsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'DeleteThunderBoltActions': TypeInfo(TypeOf.Class, create:() => DeleteThunderBoltActions()), });