toJsonString method

String toJsonString({
  1. Object? toEncodable(
    1. Object? object
    )?,
})

Converts this object to a JSON string.

Shorthand for jsonEncode.

Implementation

String toJsonString({Object? Function(Object? object)? toEncodable}) =>
    jsonEncode(toEncodable: toEncodable);