toMapN<T1, T2> static method

Map<T1, T2>? toMapN<T1, T2>(
  1. dynamic d
)

Converts to nullable map

Implementation

static Map<T1, T2>? toMapN<T1, T2>(dynamic d) {
  return d is Map<T1, T2> ? d : null;
}