byModel<T> method

T? byModel<T>(
  1. String key,
  2. T? onModel(
    1. Map value
    )
)

Implementation

T? byModel<T>(String key, T? Function(Map<dynamic, dynamic> value) onModel) {
  if (this[key] == null) return null;
  return onModel.call(this[key]);
}