The problem with the code is that the members Name and Option of the class MyDataWrapper should be annotated with @AuraEnabled also. The @AuraEnabled annotation enables the Apex class or method to be called from a Lightning component. However, the annotation also needs to be applied to the members of the class that are returned to the Lightning component, otherwise they will not be serialized and sent to the client. Therefore, the developer should add @AuraEnabled to the Name and Option members of the MyDataWrapper class to make them accessible to the Lightning component. Reference: [@AuraEnabled Annotation], [Communicate Between Lightning Components and Apex], [Serialize and Deserialize Apex Objects]