/* Options: Date: 2026-04-15 21:20:23 Version: 8.60 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: http://api.booklinker.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetCollectionRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; // @DataContract class V2BaseResponse implements IConvertible { // @DataMember(Name="responseStatus") ResponseStatus? responseStatus; V2BaseResponse({this.responseStatus}); V2BaseResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "V2BaseResponse"; TypeContext? context = _ctx; } // @DataContract class V2BaseRequest implements IConvertible { V2BaseRequest(); V2BaseRequest.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "V2BaseRequest"; TypeContext? context = _ctx; } // @DataContract class UserCollection implements IUserCollection, IConvertible { // @DataMember(Name="type") String? type; // @DataMember(Name="id") String? id; // @DataMember(Name="baseCode") String? baseCode; // @DataMember(Name="url") String? url; // @DataMember(Name="title") String? title; // @DataMember(Name="linkIds") List? linkIds; // @DataMember(Name="collectionSettingsId") String? collectionSettingsId; UserCollection({this.type,this.id,this.baseCode,this.url,this.title,this.linkIds,this.collectionSettingsId}); UserCollection.fromJson(Map json) { fromMap(json); } fromMap(Map json) { type = json['type']; id = json['id']; baseCode = json['baseCode']; url = json['url']; title = json['title']; linkIds = JsonConverters.fromJson(json['linkIds'],'List',context!); collectionSettingsId = json['collectionSettingsId']; return this; } Map toJson() => { 'type': type, 'id': id, 'baseCode': baseCode, 'url': url, 'title': title, 'linkIds': JsonConverters.toJson(linkIds,'List',context!), 'collectionSettingsId': collectionSettingsId }; getTypeName() => "UserCollection"; TypeContext? context = _ctx; } abstract class IUserCollection { String? id; String? title; List? linkIds; String? collectionSettingsId; } // @DataContract class GetCollectionResponse extends V2BaseResponse implements IConvertible { // @DataMember(Name="data") UserCollection? data; GetCollectionResponse({this.data}); GetCollectionResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); data = JsonConverters.fromJson(json['data'],'UserCollection',context!); return this; } Map toJson() => super.toJson()..addAll({ 'data': JsonConverters.toJson(data,'UserCollection',context!) }); getTypeName() => "GetCollectionResponse"; TypeContext? context = _ctx; } // @Route("/v2/collections", "GET") // @Route("/v2/collections/{Id}", "GET") // @DataContract class GetCollectionRequest extends V2BaseRequest implements IReturn, IConvertible, IGet { // @DataMember(Name="id") String? id; GetCollectionRequest({this.id}); GetCollectionRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); id = json['id']; return this; } Map toJson() => super.toJson()..addAll({ 'id': id }); createResponse() => GetCollectionResponse(); getResponseTypeName() => "GetCollectionResponse"; getTypeName() => "GetCollectionRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.booklinker.com', types: { 'V2BaseResponse': TypeInfo(TypeOf.Class, create:() => V2BaseResponse()), 'V2BaseRequest': TypeInfo(TypeOf.Class, create:() => V2BaseRequest()), 'UserCollection': TypeInfo(TypeOf.Class, create:() => UserCollection()), 'IUserCollection': TypeInfo(TypeOf.Interface), 'GetCollectionResponse': TypeInfo(TypeOf.Class, create:() => GetCollectionResponse()), 'GetCollectionRequest': TypeInfo(TypeOf.Class, create:() => GetCollectionRequest()), });