asMap<T> abstract method

Map<String, T>? asMap<T>({
  1. String? format,
})

Returns the content of this snapshot as a nullable map with value objects of type T.

The content should be a map or null and the value items of the map should be convertible to objects of type T.

The returned map is cached and unmodifiable.

Implementation

Map<String, T>? asMap<T>({String? format});