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 'avatar'
  var img = _image;
  if (img != null && !containsKey('avatar')) {
    this['avatar'] = img.serialize();
  }
  // OK
  return super.toMap();
}