jsonEncode method

String jsonEncode({
  1. String? indent,
  2. Object? toEncodable(
    1. dynamic object
    )?,
})

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);
}