refactored to use SBObject to convert dictionary to object