Fractal.fromMap constructor

Fractal.fromMap(
  1. MP d
)

Implementation

Fractal.fromMap(MP d)
    : kind = FKind.values[d['kind'] ?? 0],
      storedAt = d['stored_at'] ?? 0 {
  if (d['id'] case int id) {
    storage[id] = this;
    this.id = id;
  }
}