/* Options: Date: 2026-04-15 21:20:25 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: GetCollectionSettingsRequest.* //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 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; } // @DataContract class GetCollectionSettingsRequest extends V2BaseResponse implements IReturn, IConvertible, IGet { // @DataMember(Name="id") String? id; GetCollectionSettingsRequest({this.id}); GetCollectionSettingsRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); id = json['id']; return this; } Map toJson() => super.toJson()..addAll({ 'id': id }); createResponse() => GetCollectionsResponse(); getResponseTypeName() => "GetCollectionsResponse"; getTypeName() => "GetCollectionSettingsRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.booklinker.com', types: { 'V2BaseResponse': TypeInfo(TypeOf.Class, create:() => V2BaseResponse()), '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()), 'GetCollectionSettingsRequest': TypeInfo(TypeOf.Class, create:() => GetCollectionSettingsRequest()), });