toMap method

Map<String, Object?> toMap()

Converts a PotDescription to a Map.

Implementation

Map<String, Object?> toMap() {
  return {
    'identity': identity,
    'isPending': isPending,
    'isDisposed': isDisposed,
    'hasObject': hasObject,
    'object': object,
    'scope': scope,
  };
}