persistableMetadata property
metadata as it is persisted: transient ActorRef entries removed.
replyTo and sender are handles into the running actor system and
cannot be stored; toMap writes this instead of the raw metadata.
Implementation
Map<String, dynamic> get persistableMetadata =>
Map<String, dynamic>.from(persistableMetadataOf(metadata));