gqlifyCast<T> function

T gqlifyCast<T>(
  1. Object? value,
  2. String location
)

Casts a list element or nested value value to T.

Implementation

T gqlifyCast<T>(Object? value, String location) {
  if (value is T) return value;
  throw _mismatch(location, T, value, true);
}