/* 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: GetImageRequest.* //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; } abstract class IImageData { String? id; String? provider; String? providerImageId; String? url; Map? attributes; } abstract class IGetImageResponse { IImageData? data; } // @DataContract class GetImageResponse extends V2BaseResponse implements IGetImageResponse, IConvertible { GetImageResponse(); GetImageResponse.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); getTypeName() => "GetImageResponse"; TypeContext? context = _ctx; } // @Route("/v2/images/{Id}", "GET") // @DataContract class GetImageRequest extends V2BaseRequest implements IReturn, IConvertible, IGet { // @DataMember(Name="id") String? id; GetImageRequest({this.id}); GetImageRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); id = json['id']; return this; } Map toJson() => super.toJson()..addAll({ 'id': id }); createResponse() => GetImageResponse(); getResponseTypeName() => "GetImageResponse"; getTypeName() => "GetImageRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.booklinker.com', types: { 'V2BaseResponse': TypeInfo(TypeOf.Class, create:() => V2BaseResponse()), 'V2BaseRequest': TypeInfo(TypeOf.Class, create:() => V2BaseRequest()), 'IImageData': TypeInfo(TypeOf.Interface), 'IGetImageResponse': TypeInfo(TypeOf.Interface), 'GetImageResponse': TypeInfo(TypeOf.Class, create:() => GetImageResponse()), 'GetImageRequest': TypeInfo(TypeOf.Class, create:() => GetImageRequest()), });