/* Options: Date: 2026-04-15 21:20:26 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: PutCollectionRequest.* //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 PutCollectionResponse extends V2BaseResponse implements IConvertible { PutCollectionResponse(); PutCollectionResponse.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); getTypeName() => "PutCollectionResponse"; TypeContext? context = _ctx; } // @Route("/v2/collections", "PUT") // @Route("/v2/collections/{Id}", "PUT") // @DataContract class PutCollectionRequest extends V2BaseRequest implements IReturn, IConvertible, IPut { // @DataMember(Name="id") String? id; // @DataMember(Name="title") String? title; // @DataMember(Name="linkIds") List? linkIds; PutCollectionRequest({this.id,this.title,this.linkIds}); PutCollectionRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); id = json['id']; title = json['title']; linkIds = JsonConverters.fromJson(json['linkIds'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'id': id, 'title': title, 'linkIds': JsonConverters.toJson(linkIds,'List',context!) }); createResponse() => PutCollectionResponse(); getResponseTypeName() => "PutCollectionResponse"; getTypeName() => "PutCollectionRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.booklinker.com', types: { 'V2BaseResponse': TypeInfo(TypeOf.Class, create:() => V2BaseResponse()), 'V2BaseRequest': TypeInfo(TypeOf.Class, create:() => V2BaseRequest()), 'PutCollectionResponse': TypeInfo(TypeOf.Class, create:() => PutCollectionResponse()), 'PutCollectionRequest': TypeInfo(TypeOf.Class, create:() => PutCollectionRequest()), });