toJson method

String toJson()

Converts this schema type to a formatted JSON string.

Implementation

String toJson() {
  return JsonEncoder.withIndent("  ").convert(toProperties());
}