if ((typeDescriptor.valueType as any) == null) {
            deserializer.getErrorHandler()(
                new TypeError(`Could not deserialize ${memberName} as Map: missing value constructor.`),
            );
            return new Map<any, any>();