/* Options: Date: 2025-12-18 02:01:47 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: PostUserLinkRequest.* //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 IPostUserLinkRequest { String? baseCode; 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 PostUserLinkResponse extends V4BaseResponse implements IConvertible { PostUserLinkResponse(); PostUserLinkResponse.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); getTypeName() => "PostUserLinkResponse"; TypeContext? context = _ctx; } // @Route("/v4/links", "POST") // @DataContract class PostUserLinkRequest extends V4BaseRequest implements IReturn, IPostUserLinkRequest, IConvertible, IPost { // @DataMember(Name="baseCode") String? baseCode; // @DataMember(Name="linkType") LinkType? linkType; // @DataMember(Name="typeDefinitionPublicId") String? typeDefinitionPublicId; PostUserLinkRequest({this.baseCode,this.linkType,this.typeDefinitionPublicId}); PostUserLinkRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); baseCode = json['baseCode']; linkType = JsonConverters.fromJson(json['linkType'],'LinkType',context!); typeDefinitionPublicId = json['typeDefinitionPublicId']; return this; } Map toJson() => super.toJson()..addAll({ 'baseCode': baseCode, 'linkType': JsonConverters.toJson(linkType,'LinkType',context!), 'typeDefinitionPublicId': typeDefinitionPublicId }); createResponse() => PostUserLinkResponse(); getResponseTypeName() => "PostUserLinkResponse"; getTypeName() => "PostUserLinkRequest"; 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), 'IPostUserLinkRequest': TypeInfo(TypeOf.Interface), 'V4BaseResponse': TypeInfo(TypeOf.Class, create:() => V4BaseResponse()), 'PostUserLinkResponse': TypeInfo(TypeOf.Class, create:() => PostUserLinkResponse()), 'PostUserLinkRequest': TypeInfo(TypeOf.Class, create:() => PostUserLinkRequest()), });