dynamicMapToModel<T> static method

T? dynamicMapToModel<T>(
  1. dynamic value,
  2. T f(
    1. Map<String, dynamic> e
    )
)

Implementation

static T? dynamicMapToModel<T>(
  dynamic value,
  T Function(Map<String, dynamic> e) f,
) {
  final map = dynamicToMapStringDynamic(value);
  if (map != null) return f(map);
  return null;
}