/* Options: Date: 2025-12-06 08:55: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: GetThunderBoltActions.* //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 ContactData implements IConvertible { int? contactId; String? contactName; String? email; String? phoneNumber; ContactData({this.contactId,this.contactName,this.email,this.phoneNumber}); ContactData.fromJson(Map json) { fromMap(json); } fromMap(Map json) { contactId = json['contactId']; contactName = json['contactName']; email = json['email']; phoneNumber = json['phoneNumber']; return this; } Map toJson() => { 'contactId': contactId, 'contactName': contactName, 'email': email, 'phoneNumber': phoneNumber }; getTypeName() => "ContactData"; 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 GetThunderBoltActionsResponse extends ApiServiceResponse implements IConvertible { int? dailyActionsNumber; int? supportingDocumentProbability; List? thunderBoltActions; List? thunderBoltActionEvents; List? contacts; GetThunderBoltActionsResponse({this.dailyActionsNumber,this.supportingDocumentProbability,this.thunderBoltActions,this.thunderBoltActionEvents,this.contacts}); GetThunderBoltActionsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); dailyActionsNumber = json['dailyActionsNumber']; supportingDocumentProbability = json['supportingDocumentProbability']; thunderBoltActions = JsonConverters.fromJson(json['thunderBoltActions'],'List',context!); thunderBoltActionEvents = JsonConverters.fromJson(json['thunderBoltActionEvents'],'List',context!); contacts = JsonConverters.fromJson(json['contacts'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'dailyActionsNumber': dailyActionsNumber, 'supportingDocumentProbability': supportingDocumentProbability, 'thunderBoltActions': JsonConverters.toJson(thunderBoltActions,'List',context!), 'thunderBoltActionEvents': JsonConverters.toJson(thunderBoltActionEvents,'List',context!), 'contacts': JsonConverters.toJson(contacts,'List',context!) }); getTypeName() => "GetThunderBoltActionsResponse"; TypeContext? context = _ctx; } // @Route("/thunderbolt/actions", "GET") class GetThunderBoltActions extends ApiServiceRequest implements IReturn, IConvertible, IGet { GetThunderBoltActions(); GetThunderBoltActions.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => GetThunderBoltActionsResponse(); getResponseTypeName() => "GetThunderBoltActionsResponse"; getTypeName() => "GetThunderBoltActions"; 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()), 'ContactData': TypeInfo(TypeOf.Class, create:() => ContactData()), 'ApiServiceResponse': TypeInfo(TypeOf.Class, create:() => ApiServiceResponse()), 'GetThunderBoltActionsResponse': TypeInfo(TypeOf.Class, create:() => GetThunderBoltActionsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetThunderBoltActions': TypeInfo(TypeOf.Class, create:() => GetThunderBoltActions()), });