Added a constructor for custom json mappings