added FromJSON constraint to Dynamo abstract typeclass