toMap method

  1. @override
MutableMapping toMap()
override

Returns the internal map as a Map.

This method provides access to the underlying map data.

@return A Map containing all key-value pairs.

Implementation

@override
MutableMapping toMap() {
  // serialize 'snapshot'
  var img = _snapshot;
  if (img != null && !containsKey('snapshot')) {
    this['snapshot'] = img.serialize();
  }
  // OK
  return super.toMap();
}