decoded property

Converter get decoded

Explicitly decodes a JSON string into a Dart object (Map, List, etc.).

If the current value is not a string or invalid JSON, the state remains unchanged.

Implementation

Converter get decoded {
  final v = _value;
  if (v is String) {
    final dv = v.tryDecode();
    return Converter(
      dv,
      defaultValue: _defaultValue,
      customConverter: _customConverter,
    );
  }
  return this;
}