tryParse static method

OkfSource? tryParse(
  1. Object? value
)

Attempts to read a source entry from a YAML value.

Implementation

static OkfSource? tryParse(Object? value) {
  final map = _stringMap(value);
  return map == null ? null : OkfSource._(map);
}