toMap<T1, T2> static method

Map<T1, T2> toMap<T1, T2>(
  1. dynamic d,
  2. Map<T1, T2> def
)

Converts to not-nullable map

Implementation

static Map<T1, T2> toMap<T1, T2>(dynamic d, Map<T1, T2> def) {
  return toMapN(d) ?? def;
}