getObj<T> static method

T getObj<T>(
  1. String key,
  2. T f(
    1. Map<String, dynamic> v
    ), {
  3. required T defValue,
})

get obj.

Implementation

static T getObj<T>(String key, T Function(Map<String, dynamic> v) f,
    {required T defValue}) {
  Map<String, dynamic>? map = getObject(key);
  return map.isEmpty ? defValue : f(map);
}