toMapN<T1, T2> static method
Converts a dynamic value to a nullable map.
d
- The dynamic value to be converted.
Returns a map if the conversion is successful, otherwise null.
Implementation
static Map<T1, T2>? toMapN<T1, T2>(dynamic d) {
return d is Map<T1, T2> ? d : null;
}