transformJsonValue<T, R> function Null safety

T transformJsonValue<T, R>(
  1. Map<String, dynamic> json,
  2. String key,
  3. T transform(
    1. R
    )
)

Implementation

T transformJsonValue<T, R>(
  Map<String, dynamic> json,
  String key,
  T Function(R) transform,
) {
  final value = getJsonValue<R>(json, key);
  return transform(value);
}