/* Options: Date: 2025-10-27 16:54:06 Version: 8.60 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://collections-api-zane.dev.platform.georiot.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: PostCollectionRequest.* //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; } abstract class IPostCollectionRequest { String? title; List? linkIds; String? collectionSettingsId; } // @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; } abstract class IPostCollectionResponseData { String? id; } abstract class IPostCollectionResponse { IPostCollectionResponseData? data; } // @DataContract class PostCollectionResponse extends V4BaseResponse implements IPostCollectionResponse, IConvertible { // @DataMember(Name="data") IPostCollectionResponseData? data; PostCollectionResponse({this.data}); PostCollectionResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); data = JsonConverters.fromJson(json['data'],'IPostCollectionResponseData',context!); return this; } Map toJson() => super.toJson()..addAll({ 'data': JsonConverters.toJson(data,'IPostCollectionResponseData',context!) }); getTypeName() => "PostCollectionResponse"; TypeContext? context = _ctx; } // @Route("/v4/collections", "POST") // @DataContract class PostCollectionRequest extends V4BaseRequest implements IReturn, IPostCollectionRequest, IConvertible, IPost { // @DataMember(Name="title") String? title; // @DataMember(Name="linkIds") List? linkIds; // @DataMember(Name="collectionSettingsId") String? collectionSettingsId; PostCollectionRequest({this.title,this.linkIds,this.collectionSettingsId}); PostCollectionRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); title = json['title']; linkIds = JsonConverters.fromJson(json['linkIds'],'List',context!); collectionSettingsId = json['collectionSettingsId']; return this; } Map toJson() => super.toJson()..addAll({ 'title': title, 'linkIds': JsonConverters.toJson(linkIds,'List',context!), 'collectionSettingsId': collectionSettingsId }); createResponse() => PostCollectionResponse(); getResponseTypeName() => "PostCollectionResponse"; getTypeName() => "PostCollectionRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'collections_api_zane.dev.platform.georiot.com', types: { 'V4BaseRequest': TypeInfo(TypeOf.Class, create:() => V4BaseRequest()), 'IPostCollectionRequest': TypeInfo(TypeOf.Interface), 'V4BaseResponse': TypeInfo(TypeOf.Class, create:() => V4BaseResponse()), 'IPostCollectionResponseData': TypeInfo(TypeOf.Interface), 'IPostCollectionResponse': TypeInfo(TypeOf.Interface), 'PostCollectionResponse': TypeInfo(TypeOf.Class, create:() => PostCollectionResponse()), 'PostCollectionRequest': TypeInfo(TypeOf.Class, create:() => PostCollectionRequest()), });