toMap method

Map<String, dynamic> toMap()

Serializes the plan into a persistence-friendly map.

Implementation

Map<String, dynamic> toMap() => {
      'steps': steps.map((step) => step.toMap()).toList(),
      'metadata': metadata,
    };