Implement serialization of task model into unordered map