diff --git a/EnvelopeGenerator.Application/Annotations/Commands/CreateAnnotationCommand.cs b/EnvelopeGenerator.Application/Annotations/Commands/CreateAnnotationCommand.cs index 9dd0b349..8aba3f4e 100644 --- a/EnvelopeGenerator.Application/Annotations/Commands/CreateAnnotationCommand.cs +++ b/EnvelopeGenerator.Application/Annotations/Commands/CreateAnnotationCommand.cs @@ -24,25 +24,17 @@ public record CreateAnnotationCommand : EnvelopeReceiverQueryBase, IRequest /// /// - public CreateAnnotationCommand() + [JsonIgnore] + public string PSPDFKitInstantJSON { - _lazyPSPDFKitInstant = new(() - => JsonSerializer.Deserialize(PSPDFKitInstantJSON, SerializerOptions) ?? new ExpandoObject()); + set => PSPDFKitInstant = JsonSerializer.Deserialize(value, SerializerOptions) ?? new ExpandoObject(); } /// /// /// [JsonIgnore] - public string PSPDFKitInstantJSON { get; set; } = null!; - - private readonly Lazy _lazyPSPDFKitInstant; - - /// - /// - /// - [JsonIgnore] - public ExpandoObject PSPDFKitInstant => _lazyPSPDFKitInstant.Value; + public ExpandoObject PSPDFKitInstant { get; set; } = null!; } ///