asString method
The value as a string (Jackson 3): the text of a string, number or
boolean, '' for null and a missing node. An object or array gives
defaultValue, or throws a JsonNodeException without one; null
and a missing node give defaultValue when there is one.
Implementation
@override
String asString([String? defaultValue]) => '$value';