added context parameter to to/fromVariantMap to allow implementors returning different sets of properties
for different causes