toJson method

String toJson([
  1. bool withIndent = false
])

Implementation

String toJson([bool withIndent = false]) {
  return encodeJSON(toJsonMap(), withIndent: withIndent);
}