/* Options: Date: 2026-04-04 06:48:49 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: SaveImageAsObjectPrimary.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; /** * Updates the specified objects primary image with the specified Images Media File ID. */ // @Route("/json/reply/SaveImageAsObjectPrimary") // @Route("/SaveImageAsObjectPrimary") // @Route("/SaveImageAsObjectPrimary/userprofile") // @Api(Description="Updates the specified objects primary image with the specified Images Media File ID.") class SaveImageAsObjectPrimary implements IReturn, IConvertible, IPost { /** * Guid of the object whose primary image details we want to update. */ // @ApiMember(DataType="Guid", Description="Guid of the object whose primary image details we want to update.", IsRequired=true, Name="ObjectId", ParameterType="query") String? ObjectId; /** * Guid of the Media File that contains details of the image we want to be primary. */ // @ApiMember(DataType="Guid", Description="Guid of the Media File that contains details of the image we want to be primary.", IsRequired=true, Name="PrimaryImageMediaFileId", ParameterType="query") String? PrimaryImageMediaFileId; /** * URL to the full image. */ // @ApiMember(DataType="Guid", Description="URL to the full image.", IsRequired=true, Name="BlobImageURL", ParameterType="query") String? BlobImageURL; /** * URL to the thumbnail image. */ // @ApiMember(DataType="Guid", Description="URL to the thumbnail image.", IsRequired=true, Name="BlobImageURLThumbnail", ParameterType="query") String? BlobImageURLThumbnail; SaveImageAsObjectPrimary({this.ObjectId,this.PrimaryImageMediaFileId,this.BlobImageURL,this.BlobImageURLThumbnail}); SaveImageAsObjectPrimary.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ObjectId = json['ObjectId']; PrimaryImageMediaFileId = json['PrimaryImageMediaFileId']; BlobImageURL = json['BlobImageURL']; BlobImageURLThumbnail = json['BlobImageURLThumbnail']; return this; } Map toJson() => { 'ObjectId': ObjectId, 'PrimaryImageMediaFileId': PrimaryImageMediaFileId, 'BlobImageURL': BlobImageURL, 'BlobImageURLThumbnail': BlobImageURLThumbnail }; createResponse() => ResponseStatus(); getResponseTypeName() => "ResponseStatus"; getTypeName() => "SaveImageAsObjectPrimary"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'pfapi.pstpf.com.au', types: { 'SaveImageAsObjectPrimary': TypeInfo(TypeOf.Class, create:() => SaveImageAsObjectPrimary()), });