tryParse<T, K2, V2> method

T? tryParse<T, K2, V2>(
  1. K key,
  2. T converter(
    1. Map<K2, V2> json
    )
)

Tries to parse the nested map at key using the provided converter.

Implementation

T? tryParse<T, K2, V2>(K key, T Function(Map<K2, V2> json) converter) {
  final raw = this[key];
  final map = ConvertObjectImpl.tryToMap<K2, V2>(raw);
  if (map == null) return null;
  return converter.call(map);
}