toMap method

Map<String, Object?> toMap()

Serializes the driver block back to a map for regeneration.

Implementation

Map<String, Object?> toMap() => {
  'type': type,
  'options': Map<String, Object?>.from(options),
};