DeserializeFileAsync
DicomJsonSerializer.DeserializeFileAsync method
Asynchronously reads the UTF-8 encoded text representing a single JSON value into a DicomFile.
public static ValueTask<DicomFile?> DeserializeFileAsync(Stream utf8Json,
DicomJsonSerializerOptions? dicomJsonOptions = null, bool writeIndented = false)
| Parameter | Type | Description |
|---|---|---|
| utf8Json | Stream | JSON data to parse. |
| dicomJsonOptions | DicomJsonSerializerOptions | Options that controls serialization/deserialization process of DICOM objects. |
| writeIndented | Boolean | Specifies whether JSON should use pretty printing. By default, JSON is serialized without any extra white space. |
Return Value
The DicomFile or null.
See Also
- class DicomFile
- record DicomJsonSerializerOptions
- class DicomJsonSerializer
- namespace Aspose.Medical.Dicom.Serialization
- assembly Aspose.Medical