Skip to main content

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

NameTypeDescription
valueDecimalThe Decimal instance to be serialized into a string format.

Returns

TypeDescription
stringThe string representation of the decimal value to ensure precision is maintained during transport.