Add createFromJSON method for each table class.