encode method
Implementation
Object encode() {
return <Object?>[
id,
castShadows,
color,
colorTransition?.encode(),
direction,
directionTransition?.encode(),
intensity,
intensityTransition?.encode(),
shadowIntensity,
shadowIntensityTransition?.encode(),
];
}