/* Options: Date: 2025-12-17 00:54:13 Version: 8.60 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://shortlinks-api.qa.platform.georiot.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: PutUserLinkRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; // @DataContract class V4BaseRequest implements IConvertible { V4BaseRequest(); V4BaseRequest.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "V4BaseRequest"; TypeContext? context = _ctx; } enum LinkType { None, Simple, Split, Interstitial, Advanced, Collection, } abstract class IPutUserLinkRequest { String? id; LinkType? linkType; String? typeDefinitionPublicId; } // @DataContract class V4BaseResponse implements IConvertible { // @DataMember(Name="status") ResponseStatus? status; V4BaseResponse({this.status}); V4BaseResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { status = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'status': JsonConverters.toJson(status,'ResponseStatus',context!) }; getTypeName() => "V4BaseResponse"; TypeContext? context = _ctx; } // @DataContract class PutUserLinkResponse extends V4BaseResponse implements IConvertible { PutUserLinkResponse(); PutUserLinkResponse.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); getTypeName() => "PutUserLinkResponse"; TypeContext? context = _ctx; } // @Route("/v4/links", "PUT") // @Route("/v4/links/{Id}", "PUT") // @DataContract class PutUserLinkRequest extends V4BaseRequest implements IReturn, IPutUserLinkRequest, IConvertible, IPut { // @DataMember(Name="id") String? id; // @DataMember(Name="linkType") LinkType? linkType; // @DataMember(Name="typeDefinitionPublicId") String? typeDefinitionPublicId; PutUserLinkRequest({this.id,this.linkType,this.typeDefinitionPublicId}); PutUserLinkRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); id = json['id']; linkType = JsonConverters.fromJson(json['linkType'],'LinkType',context!); typeDefinitionPublicId = json['typeDefinitionPublicId']; return this; } Map toJson() => super.toJson()..addAll({ 'id': id, 'linkType': JsonConverters.toJson(linkType,'LinkType',context!), 'typeDefinitionPublicId': typeDefinitionPublicId }); createResponse() => PutUserLinkResponse(); getResponseTypeName() => "PutUserLinkResponse"; getTypeName() => "PutUserLinkRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'shortlinks_api.qa.platform.georiot.com', types: { 'V4BaseRequest': TypeInfo(TypeOf.Class, create:() => V4BaseRequest()), 'LinkType': TypeInfo(TypeOf.Enum, enumValues:LinkType.values), 'IPutUserLinkRequest': TypeInfo(TypeOf.Interface), 'V4BaseResponse': TypeInfo(TypeOf.Class, create:() => V4BaseResponse()), 'PutUserLinkResponse': TypeInfo(TypeOf.Class, create:() => PutUserLinkResponse()), 'PutUserLinkRequest': TypeInfo(TypeOf.Class, create:() => PutUserLinkRequest()), });