jsonEncode method
Converts to JSON string with indent
and toEncodable
.
Implementation
String jsonEncode({
String? indent,
Object? Function(dynamic object)? toEncodable,
}) {
return JsonEncoder.withIndent(indent, toEncodable).convert(this);
}