toJsonString method

String toJsonString()

Converts the SimplifiedInvoice object to a JSON string.

This method converts the invoice's JSON representation to a JSON string using jsonEncode.

Returns the invoice as a String in JSON format.

Implementation

String toJsonString() => jsonEncode(toJson());