value<T> static method

T? value<T>(
  1. String key,
  2. dynamic source, [
  3. EntityBuilder<T>? builder
])

Returns the value associated with the given key from the source.

Implementation

static T? value<T>(
  String key,
  dynamic source, [
  EntityBuilder<T>? builder,
]) {
  final value = source is Map ? source[key] : null;
  return _v(value, builder);
}