/* Options: Date: 2025-12-06 08:57:34 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: TemplateApprovalList.* //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 TemplateApprovalStatus { static const TemplateApprovalStatus AwaitingApproval = const TemplateApprovalStatus._(0); static const TemplateApprovalStatus Rejected = const TemplateApprovalStatus._(1); static const TemplateApprovalStatus Approved = const TemplateApprovalStatus._(2); final int _value; const TemplateApprovalStatus._(this._value); int get value => _value; static List get values => const [AwaitingApproval,Rejected,Approved]; } class TemplateType { static const TemplateType Introductory = const TemplateType._(0); static const TemplateType Refresher = const TemplateType._(1); final int _value; const TemplateType._(this._value); int get value => _value; static List get values => const [Introductory,Refresher]; } class SectionTitle { static const SectionTitle Welcome = const SectionTitle._(0); static const SectionTitle Cochrane = const SectionTitle._(1); static const SectionTitle Iconic = const SectionTitle._(2); static const SectionTitle OurBestWork = const SectionTitle._(3); static const SectionTitle RealityOfRisk = const SectionTitle._(4); static const SectionTitle ProductRange = const SectionTitle._(5); static const SectionTitle ProductDeployments = const SectionTitle._(6); static const SectionTitle Industries = const SectionTitle._(7); static const SectionTitle ClearVu = const SectionTitle._(8); static const SectionTitle CaseStudies = const SectionTitle._(9); static const SectionTitle Expertise = const SectionTitle._(10); static const SectionTitle Media = const SectionTitle._(11); static const SectionTitle ThankYou = const SectionTitle._(12); static const SectionTitle ClearVuRange = const SectionTitle._(13); static const SectionTitle Presentations = const SectionTitle._(14); static const SectionTitle LegacyVideos = const SectionTitle._(15); final int _value; const SectionTitle._(this._value); int get value => _value; static List get values => const [Welcome,Cochrane,Iconic,OurBestWork,RealityOfRisk,ProductRange,ProductDeployments,Industries,ClearVu,CaseStudies,Expertise,Media,ThankYou,ClearVuRange,Presentations,LegacyVideos]; } class SectionSummary implements IConvertible { SectionTitle? title; String? titleString; int? sectionId; String? sectionName; SectionSummary({this.title,this.titleString,this.sectionId,this.sectionName}); SectionSummary.fromJson(Map json) { fromMap(json); } fromMap(Map json) { title = JsonConverters.fromJson(json['title'],'SectionTitle',context!); titleString = json['titleString']; sectionId = json['sectionId']; sectionName = json['sectionName']; return this; } Map toJson() => { 'title': JsonConverters.toJson(title,'SectionTitle',context!), 'titleString': titleString, 'sectionId': sectionId, 'sectionName': sectionName }; getTypeName() => "SectionSummary"; TypeContext? context = _ctx; } class TemplateApprovalListItem implements IConvertible { String? userCrmId; String? approvalDate; int? templateApprovalId; TemplateApprovalStatus? approvalStatus; String? approvalStatusString; TemplateType? templateType; String? templateTypeString; String? templateName; String? systemUserName; List? templateChangeDetail; List? templateDetail; String? content; TemplateApprovalListItem({this.userCrmId,this.approvalDate,this.templateApprovalId,this.approvalStatus,this.approvalStatusString,this.templateType,this.templateTypeString,this.templateName,this.systemUserName,this.templateChangeDetail,this.templateDetail,this.content}); TemplateApprovalListItem.fromJson(Map json) { fromMap(json); } fromMap(Map json) { userCrmId = json['userCrmId']; approvalDate = json['approvalDate']; templateApprovalId = json['templateApprovalId']; approvalStatus = JsonConverters.fromJson(json['approvalStatus'],'TemplateApprovalStatus',context!); approvalStatusString = json['approvalStatusString']; templateType = JsonConverters.fromJson(json['templateType'],'TemplateType',context!); templateTypeString = json['templateTypeString']; templateName = json['templateName']; systemUserName = json['systemUserName']; templateChangeDetail = JsonConverters.fromJson(json['templateChangeDetail'],'List',context!); templateDetail = JsonConverters.fromJson(json['templateDetail'],'List',context!); content = json['content']; return this; } Map toJson() => { 'userCrmId': userCrmId, 'approvalDate': approvalDate, 'templateApprovalId': templateApprovalId, 'approvalStatus': JsonConverters.toJson(approvalStatus,'TemplateApprovalStatus',context!), 'approvalStatusString': approvalStatusString, 'templateType': JsonConverters.toJson(templateType,'TemplateType',context!), 'templateTypeString': templateTypeString, 'templateName': templateName, 'systemUserName': systemUserName, 'templateChangeDetail': JsonConverters.toJson(templateChangeDetail,'List',context!), 'templateDetail': JsonConverters.toJson(templateDetail,'List',context!), 'content': content }; getTypeName() => "TemplateApprovalListItem"; 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 TemplateApprovalListResponse extends ApiServiceResponse implements IConvertible { List? templates; TemplateApprovalListResponse({this.templates}); TemplateApprovalListResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); templates = JsonConverters.fromJson(json['templates'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'templates': JsonConverters.toJson(templates,'List',context!) }); getTypeName() => "TemplateApprovalListResponse"; TypeContext? context = _ctx; } // @Route("/template-approval/list", "GET") class TemplateApprovalList extends ApiServiceRequest implements IReturn, IConvertible, IGet { TemplateApprovalList(); TemplateApprovalList.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => TemplateApprovalListResponse(); getResponseTypeName() => "TemplateApprovalListResponse"; getTypeName() => "TemplateApprovalList"; 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), 'TemplateApprovalStatus': TypeInfo(TypeOf.Enum, enumValues:TemplateApprovalStatus.values), 'TemplateType': TypeInfo(TypeOf.Enum, enumValues:TemplateType.values), 'SectionTitle': TypeInfo(TypeOf.Enum, enumValues:SectionTitle.values), 'SectionSummary': TypeInfo(TypeOf.Class, create:() => SectionSummary()), 'TemplateApprovalListItem': TypeInfo(TypeOf.Class, create:() => TemplateApprovalListItem()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ApiServiceResponse': TypeInfo(TypeOf.Class, create:() => ApiServiceResponse()), 'TemplateApprovalListResponse': TypeInfo(TypeOf.Class, create:() => TemplateApprovalListResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'TemplateApprovalList': TypeInfo(TypeOf.Class, create:() => TemplateApprovalList()), });