Serializes the layout data.
@override Map<String, dynamic> serialize() { return {"extensionTypes": extensionTypes.map((e) => e.value).toList()}; }