serialize(obj, context) {
		context.write(obj.size);
		for (const key of obj.keys()) {
			context.write(key);
		}
		for (const value of obj.values()) {
			context.write(value);
		}
	}
@template K, V
@param {Map<K, V>} obj map
@param {ObjectSerializerContext} context context