toJsonString method

String toJsonString()
inherited

Function to create json representation.

Implementation

String toJsonString() {
  const encoder = JsonEncoder.withIndent('  ');
  return encoder.convert(toMap());
}