Skip to content

Instantly share code, notes, and snippets.

@alexed1
Created March 10, 2019 02:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexed1/6e4a64ee95c2fd43577d95ae5fb28bda to your computer and use it in GitHub Desktop.
Save alexed1/6e4a64ee95c2fd43577d95ae5fb28bda to your computer and use it in GitHub Desktop.
public with sharing class Vehicle {
@AuraEnabled public String model { get; set; }
@AuraEnabled public List<Wheel> wheels { get; set; }
@AuraEnabled public String engine { get; set; }
@AuraEnabled public String Id { get; set; }
public Vehicle() {
wheels = new List<Wheel> ();
}
public class Wheel {
@AuraEnabled public String tireSize { get; set; }
@AuraEnabled public String tireBrand { get; set; }
@AuraEnabled public String rimStyle { get; set; }
@AuraEnabled public String Id { get; set; }
public Wheel() {
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment