/* Options: Date: 2026-04-15 21:21:02 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: GetCollectionsRequest.* //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 V2PaginatedBaseRequest extends V2BaseRequest implements IConvertible { // @DataMember(Name="offset") int? offset; // @DataMember(Name="limit") int? limit; V2PaginatedBaseRequest({this.offset,this.limit}); V2PaginatedBaseRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); offset = json['offset']; limit = json['limit']; return this; } Map toJson() => super.toJson()..addAll({ 'offset': offset, 'limit': limit }); getTypeName() => "V2PaginatedBaseRequest"; TypeContext? context = _ctx; } // @DataContract class V2ListRequest extends V2PaginatedBaseRequest implements IConvertible { // @DataMember(Name="ids") List? ids; V2ListRequest({this.ids}); V2ListRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); ids = JsonConverters.fromJson(json['ids'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'ids': JsonConverters.toJson(ids,'List',context!) }); getTypeName() => "V2ListRequest"; TypeContext? context = _ctx; } // @DataContract class V2PageObject implements IConvertible { // @DataMember(Name="offset") int? offset; // @DataMember(Name="limit") int? limit; // @DataMember(Name="totalRecords") int? totalRecords; V2PageObject({this.offset,this.limit,this.totalRecords}); V2PageObject.fromJson(Map json) { fromMap(json); } fromMap(Map json) { offset = json['offset']; limit = json['limit']; totalRecords = json['totalRecords']; return this; } Map toJson() => { 'offset': offset, 'limit': limit, 'totalRecords': totalRecords }; getTypeName() => "V2PageObject"; TypeContext? context = _ctx; } // @DataContract class V2PaginatedBaseResponse extends V2BaseResponse implements IConvertible { // @DataMember(Name="page") V2PageObject? page; V2PaginatedBaseResponse({this.page}); V2PaginatedBaseResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); page = JsonConverters.fromJson(json['page'],'V2PageObject',context!); return this; } Map toJson() => super.toJson()..addAll({ 'page': JsonConverters.toJson(page,'V2PageObject',context!) }); getTypeName() => "V2PaginatedBaseResponse"; TypeContext? context = _ctx; } abstract class IUserCollection { String? id; String? title; List? linkIds; String? collectionSettingsId; } abstract class IGetCollectionsResponse { List? data; } // @DataContract class GetCollectionsResponse extends V2PaginatedBaseResponse implements IGetCollectionsResponse, IConvertible { GetCollectionsResponse(); GetCollectionsResponse.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); getTypeName() => "GetCollectionsResponse"; TypeContext? context = _ctx; } // @Route("/v2/collections/list", "GET") // @DataContract class GetCollectionsRequest extends V2ListRequest implements IReturn, IConvertible, IGet { GetCollectionsRequest(); GetCollectionsRequest.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => GetCollectionsResponse(); getResponseTypeName() => "GetCollectionsResponse"; getTypeName() => "GetCollectionsRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.booklinker.com', types: { 'V2BaseResponse': TypeInfo(TypeOf.Class, create:() => V2BaseResponse()), 'V2BaseRequest': TypeInfo(TypeOf.Class, create:() => V2BaseRequest()), 'V2PaginatedBaseRequest': TypeInfo(TypeOf.Class, create:() => V2PaginatedBaseRequest()), 'V2ListRequest': TypeInfo(TypeOf.Class, create:() => V2ListRequest()), 'V2PageObject': TypeInfo(TypeOf.Class, create:() => V2PageObject()), 'V2PaginatedBaseResponse': TypeInfo(TypeOf.Class, create:() => V2PaginatedBaseResponse()), 'IUserCollection': TypeInfo(TypeOf.Interface), 'IGetCollectionsResponse': TypeInfo(TypeOf.Interface), 'GetCollectionsResponse': TypeInfo(TypeOf.Class, create:() => GetCollectionsResponse()), 'GetCollectionsRequest': TypeInfo(TypeOf.Class, create:() => GetCollectionsRequest()), });