Serializes the driver block back to a map for regeneration.
Map<String, Object?> toMap() => { 'type': type, 'options': Map<String, Object?>.from(options), };