/* Options: Date: 2026-04-15 21:21:49 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: PutLinkUpdateRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; // @DataContract class PutLinkUpdateResponse implements IConvertible { // @DataMember(Name="success") bool? success; // @DataMember(Name="responseStatus") ResponseStatus? responseStatus; PutLinkUpdateResponse({this.success,this.responseStatus}); PutLinkUpdateResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { success = json['success']; responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'success': success, 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "PutLinkUpdateResponse"; TypeContext? context = _ctx; } // @Route("/v1/links", "PUT") class PutLinkUpdateRequest implements IReturn, IConvertible, IPut { // @DataMember(Name="baseCode") String? baseCode; // @DataMember(Name="domain") String? domain; // @DataMember(Name="code") String? code; // @DataMember(Name="url") String? url; PutLinkUpdateRequest({this.baseCode,this.domain,this.code,this.url}); PutLinkUpdateRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { baseCode = json['baseCode']; domain = json['domain']; code = json['vanityCode']; url = json['newUrl']; return this; } Map toJson() => { 'baseCode': baseCode, 'domain': domain, 'code': code, 'url': url }; createResponse() => PutLinkUpdateResponse(); getResponseTypeName() => "PutLinkUpdateResponse"; getTypeName() => "PutLinkUpdateRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.booklinker.com', types: { 'PutLinkUpdateResponse': TypeInfo(TypeOf.Class, create:() => PutLinkUpdateResponse()), 'PutLinkUpdateRequest': TypeInfo(TypeOf.Class, create:() => PutLinkUpdateRequest()), });