/* Options: Date: 2024-11-21 02:34:37 Version: 6.00 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://resourcelibrary.api.ashcompanies.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: ResourceLookAheadRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class BasicResourceLibraryRequest implements IConvertible { int? resourceLibraryMemberId; BasicResourceLibraryRequest({this.resourceLibraryMemberId}); BasicResourceLibraryRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { resourceLibraryMemberId = json['resourceLibraryMemberId']; return this; } Map toJson() => { 'resourceLibraryMemberId': resourceLibraryMemberId }; getTypeName() => "BasicResourceLibraryRequest"; TypeContext? context = _ctx; } class LookaheadTitle implements IConvertible { String? id; String? title; String? subtitle; LookaheadTitle({this.id,this.title,this.subtitle}); LookaheadTitle.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; title = json['title']; subtitle = json['subtitle']; return this; } Map toJson() => { 'id': id, 'title': title, 'subtitle': subtitle }; getTypeName() => "LookaheadTitle"; TypeContext? context = _ctx; } class LookaheadTag implements IConvertible { String? id; String? title; LookaheadTag({this.id,this.title}); LookaheadTag.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; title = json['title']; return this; } Map toJson() => { 'id': id, 'title': title }; getTypeName() => "LookaheadTag"; TypeContext? context = _ctx; } class LookaheadResult implements IConvertible { String? id; List? lookaheadTitles; List? lookaheadTags; LookaheadResult({this.id,this.lookaheadTitles,this.lookaheadTags}); LookaheadResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; lookaheadTitles = JsonConverters.fromJson(json['lookaheadTitles'],'List',context!); lookaheadTags = JsonConverters.fromJson(json['lookaheadTags'],'List',context!); return this; } Map toJson() => { 'id': id, 'lookaheadTitles': JsonConverters.toJson(lookaheadTitles,'List',context!), 'lookaheadTags': JsonConverters.toJson(lookaheadTags,'List',context!) }; getTypeName() => "LookaheadResult"; TypeContext? context = _ctx; } class ResourceLookAheadResponse implements IConvertible { LookaheadResult? lookaheadResult; ResourceLookAheadResponse({this.lookaheadResult}); ResourceLookAheadResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { lookaheadResult = JsonConverters.fromJson(json['lookaheadResult'],'LookaheadResult',context!); return this; } Map toJson() => { 'lookaheadResult': JsonConverters.toJson(lookaheadResult,'LookaheadResult',context!) }; getTypeName() => "ResourceLookAheadResponse"; TypeContext? context = _ctx; } // @Route("/lookaheadResults", "GET") class ResourceLookAheadRequest extends BasicResourceLibraryRequest implements IReturn, IConvertible { String? text; /** * Set it to true if requesting resources only from digital library */ // @ApiMember(Description="Set it to true if requesting resources only from digital library") bool? digitalFitness; /** * Set it to true if requesting resources only from health library */ // @ApiMember(Description="Set it to true if requesting resources only from health library") bool? healthLibrary; ResourceLookAheadRequest({this.text,this.digitalFitness,this.healthLibrary}); ResourceLookAheadRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); text = json['text']; digitalFitness = json['digitalFitness']; healthLibrary = json['healthLibrary']; return this; } Map toJson() => super.toJson()..addAll({ 'text': text, 'digitalFitness': digitalFitness, 'healthLibrary': healthLibrary }); createResponse() => ResourceLookAheadResponse(); getResponseTypeName() => "ResourceLookAheadResponse"; getTypeName() => "ResourceLookAheadRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'resourcelibrary.api.ashcompanies.com', types: { 'BasicResourceLibraryRequest': TypeInfo(TypeOf.Class, create:() => BasicResourceLibraryRequest()), 'LookaheadTitle': TypeInfo(TypeOf.Class, create:() => LookaheadTitle()), 'LookaheadTag': TypeInfo(TypeOf.Class, create:() => LookaheadTag()), 'LookaheadResult': TypeInfo(TypeOf.Class, create:() => LookaheadResult()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ResourceLookAheadResponse': TypeInfo(TypeOf.Class, create:() => ResourceLookAheadResponse()), 'ResourceLookAheadRequest': TypeInfo(TypeOf.Class, create:() => ResourceLookAheadRequest()), });