This should probably be `to_h` to match Ruby conventions.