Create a source object from its dictionary representation.
Please note that this does not necessarily result in exactly the same
object as some object do some transformations (e.g. the seismology
sources). If you need to round-trip to disc with the exact same objects,
please use the .to_json() and .from_json() methods.