PotDescription.fromMap constructor
Creates a PotDescription from a Map.
Implementation
factory PotDescription.fromMap(Map<String, Object?> map) {
return PotDescription(
identity: map['identity'] as String? ?? '',
isPending: map['isPending'] as bool?,
isDisposed: map['isDisposed'] as bool? ?? false,
hasObject: map['hasObject'] as bool? ?? false,
object: map['object'] as String? ?? 'null',
scope: map['scope'] as int?,
);
}