Implement map serialization and deserialization | OpenAI