/* Options: Date: 2026-04-04 04:52:55 Version: 8.52 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://pfapi.pstpf.com.au/api //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: SaveObjectConnection.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; // @ApiResponse(Description="Returns the object connection Id created/modified and success of the save.") class SaveObjectConnectionResponse implements IConvertible { String? ObjectConnectionId; ResponseStatus? ResponseStatus; SaveObjectConnectionResponse({this.ObjectConnectionId,this.ResponseStatus}); SaveObjectConnectionResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ObjectConnectionId = json['ObjectConnectionId']; ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'ObjectConnectionId': ObjectConnectionId, 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "SaveObjectConnectionResponse"; TypeContext? context = _ctx; } /** * Creates or Updates a new connection between two objects. */ // @Route("/objects/{FromObjectId}/{ToObjectId}/{RmsTableCtxIdConnectionMethod}", "POST") // @Api(Description="Creates or Updates a new connection between two objects.") class SaveObjectConnection implements IReturn, IConvertible, IPost { /** * 'From' object ID in the connection. */ // @ApiMember(DataType="Guid", Description="'From' object ID in the connection.", IsRequired=true, Name="FromObjectId", ParameterType="query") String? FromObjectId; /** * 'To' object ID in the connection. */ // @ApiMember(DataType="Guid", Description="'To' object ID in the connection.", IsRequired=true, Name="ToObjectId", ParameterType="query") String? ToObjectId; /** * Guid representing the Connection Method to use to connect the objects with. */ // @ApiMember(DataType="Guid", Description="Guid representing the Connection Method to use to connect the objects with.", IsRequired=true, Name="RmsTableCtxIdConnectionMethod", ParameterType="query") String? RmsTableCtxIdConnectionMethod; SaveObjectConnection({this.FromObjectId,this.ToObjectId,this.RmsTableCtxIdConnectionMethod}); SaveObjectConnection.fromJson(Map json) { fromMap(json); } fromMap(Map json) { FromObjectId = json['FromObjectId']; ToObjectId = json['ToObjectId']; RmsTableCtxIdConnectionMethod = json['RmsTableCtxIdConnectionMethod']; return this; } Map toJson() => { 'FromObjectId': FromObjectId, 'ToObjectId': ToObjectId, 'RmsTableCtxIdConnectionMethod': RmsTableCtxIdConnectionMethod }; createResponse() => SaveObjectConnectionResponse(); getResponseTypeName() => "SaveObjectConnectionResponse"; getTypeName() => "SaveObjectConnection"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'pfapi.pstpf.com.au', types: { 'SaveObjectConnectionResponse': TypeInfo(TypeOf.Class, create:() => SaveObjectConnectionResponse()), 'SaveObjectConnection': TypeInfo(TypeOf.Class, create:() => SaveObjectConnection()), });