DecimalSerializer
No overview available.
Constructor
Signature
def DecimalSerializer()
Methods
serialize()
def serialize(
value: Decimal
) - > string
Converts a Decimal object into its string representation for JSON serialization.
Parameters
| Name | Type | Description |
|---|---|---|
| value | Decimal | The Decimal instance to be serialized into a string format. |
Returns
| Type | Description |
|---|---|
string | The string representation of the decimal value to ensure precision is maintained during transport. |