asCast<T> method

T asCast<T>(
  1. String key
)

Implementation

T asCast<T>(String key) => _try(
    key,
    () => T == double
        ? ((this[key] as num).toDouble() as T)
        : (this[key] as T));