toJsonString method

String toJsonString()

Converts the invoice to a JSON string.

This is a convenient method that encodes the JSON representation of the invoice.

Returns the JSON string.

Implementation

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